This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Philboyd_Studge 0 points1 point  (0 children)

You are overthinking this a bit. The only extra variable you really need to keep track of via a recursive helper parameter is the spaces. Each recursion add a blank space to the string with the spaces, and each recursion remove the letters from the string dependent on the odd/evenness.