Last active
December 25, 2015 00:19
-
-
Save nicholasklick/6887251 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here's a sequence of numbers where each line is | |
# generated by semantically counting and printing the numbers | |
# in the previous line: | |
# | |
# 1 | |
# 11 | |
# 21 | |
# 1211 | |
# 111221 | |
# 312211 | |
# 13112221 | |
# ... | |
# | |
# one | |
# one one | |
# two one | |
# one two one one | |
# In any programming language you want | |
# (Python/Ruby/JavaScript/Java/whatever,) can you write a function that, | |
# given some number n as an input, prints out the first n items in the | |
# sequence. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment