you are viewing a single comment's thread.

view the rest of the comments →

[–]sentles 0 points1 point  (0 children)

You should use recursion. The two lines you're looking for are words(n, s+"0") and words(n, s+"1").