Title |
User |
Message |
Date Posted |
Re: Hint |
IsaacJL |
Thanks. Classic "don't use global variable" situation. Appreciate it. |
Mar 28, 2016 - 1:35:14 am UTC |
Re: Hint |
jargon |
Your problem is that you're using global variables. In your first iteration, you have nextOnOther = 2, nextOnSame = 1. This falls to your else case. Your recursion is dfs-like, so you'll go all the wa... |
Mar 28, 2016 - 12:05:18 am UTC |
Re: Hint |
jargon |
Not possible based on the premise of the recursive case. |
Mar 28, 2016 - 12:03:39 am UTC |
Re: Hint |
spencereir |
What if nextOnOther AND nextOnSame are -1? EDIT: Ignore, as jargon pointed out, this won't occur, the base case will catch the situation where there is nothing left on either side |
Mar 28, 2016 - 12:00:07 am UTC |
Hint |
IsaacJL |
So, I've attempted a few different submissions but all seem to be caught on the same error. I've noticed something interesting with my code and I'm wondering if I could get a small recommendation or h... |
Mar 27, 2016 - 8:23:34 pm UTC |