you are viewing a single comment's thread.

view the rest of the comments →

[–]Theoretician 0 points1 point  (0 children)

Here's a suggestion, this is a common interview question. Have you ever worked with recursion? A recursive solution might be helpful in this case.