The challenge is to write a program which outputs all characters of the Unicode table from n to z range.

For code "0000" is the first in order and you must skip all blank Unicode combinations. For example, let n = 134 and z = 300, you must save or print all unicode characters between 0134 and 0300.

The output of the program does not HAVE to output them, for example using std::cout can be used but if you have an array with all the saved characters then that still qualifies.(You don't have to print them out)

The shortest program in bytes wins.

  • 1
    \$\begingroup\$ What exactly do you mean by n-z range? \$\endgroup\$ – Maltysen Jun 30 '15 at 1:11
  • 2
    \$\begingroup\$ I'm a little confused. The program should output all Unicode characters but don't print them? \$\endgroup\$ – Alex A. Jun 30 '15 at 1:15
  • \$\begingroup\$ @AlexA. maybe he means it can be either function or stdout? \$\endgroup\$ – Maltysen Jun 30 '15 at 1:17
  • \$\begingroup\$ I mean you have to create some sort of list from "n" - "z" For example given n=134, that would be the 134 character in Unicode or "0134"and z=300 so you would print all unicode characters between "0134" through "0300". You would then have to skip all blank characters and save them in some way. \$\endgroup\$ – Roberto Duran Jun 30 '15 at 1:21
  • 1
    \$\begingroup\$ Adding some examples of input and its associated output would be helpful to clarify your intent. \$\endgroup\$ – Alex A. Jun 30 '15 at 2:17

Pyth - 16 bytes

Maps Char-of over the range, and detects unprintables by if the string "\x" is inside its repr because that is how python represents unprintables like \x00.


Try it here online.

| improve this answer | |
  • \$\begingroup\$ This is correct and the winner! \$\endgroup\$ – Roberto Duran Jul 3 '15 at 8:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.