Skip to main content
Mod Removes Wiki by Martin Ender
Post Made Community Wiki by Wasi
replace 'print ' with '$><<' to shave off two chars
Source Link
Mark Reed
  • 1k
  • 8
  • 15

Ruby, 4947 characters

(1) Only contains 'a' and 'u', 24 chars:

puts [*97..122].pack'c*'

(2) Only contains 'o' and 'i', 2523 chars:

print [*97$><<[*97.chr..'z'].join

There's a slight difference in output in that the first one adds a newline and the second doesn't. Could add the newline to the second at a cost of 4 characters; removing it from the first would be harder.

Ruby, 49 characters

(1) Only contains 'a' and 'u', 24 chars:

puts [*97..122].pack'c*'

(2) Only contains 'o' and 'i', 25 chars:

print [*97.chr..'z'].join

There's a slight difference in output in that the first one adds a newline and the second doesn't. Could add the newline to the second at a cost of 4 characters; removing it from the first would be harder.

Ruby, 47 characters

(1) Only contains 'a' and 'u', 24 chars:

puts [*97..122].pack'c*'

(2) Only contains 'o' and 'i', 23 chars:

$><<[*97.chr..'z'].join

There's a slight difference in output in that the first one adds a newline and the second doesn't. Could add the newline to the second at a cost of 4 characters; removing it from the first would be harder.

Source Link
Mark Reed
  • 1k
  • 8
  • 15

Ruby, 49 characters

(1) Only contains 'a' and 'u', 24 chars:

puts [*97..122].pack'c*'

(2) Only contains 'o' and 'i', 25 chars:

print [*97.chr..'z'].join

There's a slight difference in output in that the first one adds a newline and the second doesn't. Could add the newline to the second at a cost of 4 characters; removing it from the first would be harder.