Post Closed as "duplicate" by Peter Taylor code-golf of
6 added 13 characters in body
source | link

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle non-negative integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples / Test Cases:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle non-negative integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle non-negative integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples / Test Cases:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9
5 added 4 characters in body
source | link

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle positivenon-negative integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle positive integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle non-negative integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9
4 tags
source | link

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle positive integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is code-golf meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle positive integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is code-golf meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9

Goal:

Your goal is to print out numbers within a given range (Also including given values).

Input Format:

The input will look like: (int-int, int-int, ...)

... meaning the user can add as many int-int as they'd like.

Other Info:

  • You will only have to handle positive integer numbers.
  • The first integer in int-int will always be smaller, or the same, then the next integer in int-int
  • The input will always have at least two int-int
  • Each int-int will followed by a comma and a space, except for the last one.
  • This is meaning the shortest answer wins!

Examples:

  • Example 1:
  • Input: (10-13, 11-15, 0-3)
  • Output: 10 11 12 13 11 12 13 14 15 0 1 2 3

  • Example 2:

  • Input: (1-5, 1-15)
  • Output: 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

  • Example 3:

  • Input: (1-2, 1-3, 1-3, 1-2)
  • Output: 1 2 1 2 3 1 2 3 1 2

  • Example 4:

  • Input: (4-6, 0-1, 9-9)
  • Output: 4 5 6 0 1 9
3 added 14 characters in body
source | link
2 added 90 characters in body
source | link
1
source | link