You forgot to return from test() and add its function prototype at the top, and add stdio.h
I know that about the setUp and tearDown. Didn't know about the testWatcher though. Thanks :)
setUp and tearDown should be optional too, but are probably useful for more compilcated test scripts.
Alright, but that was just an arbitrary number I put in so that it wouldn't time out. The thing is, no number in the actual test cases was that high.
I think the author somehow screwed with the Hash class to make it unusable for the solution. :/ as in, if you try to use this code for the solution it will just fail, period.
Using a hash will break in certain cases. Try reading about loop detection on wikipedia or stackoverflow for alternative strategies.
This comment is hidden because it contains spoiler information about the solution
Not a general solution; will fail after 125!
just click the compare button next to any of the other solutions.