Talk:Number reversal game: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12:
:: Hi, I just saw yet another example added with the same flaw. I could add a note to the task description, but the task description seems to be OK. The problem is a subtle error in a lot of the implementations. I'll mark a few more as incorrect.
 
::: I think it's misleading to say "Example is likely to fail if numbers are initially randomly shuffled to the ordered state." The example simply doesn't implement the stipulated condition; if that is a failure, then the example certainly fails. Flag should say something like "Example should disallow the (unlikely) case that the list presented to the player is already ordered."
So the issue is that problem statement calls for an initial list that is definitely not in sorted order, and implementations should check for that. (I'm spelling it out because the above discussion doesn't, quite.)
 
So the issue is that problem statement calls for presenting an initial list that is definitely not in sorted order, and implementations should check for that. (I'm spelling it out because the above discussion doesn't, quite.)
Anonymous user