Re: Better Way to Do This
- Posted by euphoric (admin) Aug 06, 2009
- 1055 views
DerekParnell said...
Sorry to burst the bubble, but the test is flawed.
Thank you Derek and Fernando for your diligent coder brains and hawk-like eyes.
DerekParnell said...
euphoric said...
I do have a question. When i gets to zero, why doesn't the test for sequence(s[i]) fail? Or is 0 a valid sequence element?!
Good question ... don't know the answer yet.
I could understand if the test for i was first, because it would short circuit, right? Hmmmmm.
Take your time. You'll figure it out.