---
title: "Discussion on \"Linq Challenge - Epand the Range\" | Hashnode"
description: "Discussion on \"Linq Challenge - Epand the Range\". Input: string \"2, 3-5, 7\", Out put => [2,3,4,5,7].\nHint: we need to expand this range \" 2, 3-5, 7\" to \norder [2, 3, 4, 5 , 7 ], we will notice that \"6\" is not exist in range as is not in string.\nExplanation: expand  range from \"3-5\", then distinct va..."
url: "https://hashnode.com/posts/linq-challenge-epand-the-range/61524f8acf735d72249a8d9a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Linq Challenge - Epand the Range](https://ekram.hashnode.dev/linq-challenge-epand-the-range?utm_source=hashnode&utm_medium=feed)

Input: string "2, 3-5, 7", Out put => \[2,3,4,5,7\]. Hint: we need to expand this range " 2, 3-5, 7" to order \[2, 3, 4, 5 , 7 \], we will notice that "6" is not exist in range as is not in string. Explanation: expand range from "3-5", then distinct va...

Sep 27, 2021 · 1 min read · ekram.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Ekram Mohamed](https://hashnode.com/@ekram)

@ekram · Egypt

  
[View profile](https://hashnode.com/@ekram)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
