Talk:Order two numerical lists

From Rosetta Code
Revision as of 23:55, 29 November 2011 by rosettacode>Spoon! (Created page with "The task description should clarify what should happen for two equal lists. Right now the description seems inconsistent. It says "return true if the first list should be ordere...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The task description should clarify what should happen for two equal lists.

Right now the description seems inconsistent. It says "return true if the first list should be ordered before the second", but should a list be ordered before itself? It seems that it should not.

But reading the algorithm description: "... and so on, until one of the list has no more elements. If the first list runs out of elements the result is true." It seems that it should return true for two equal lists, since both lists would run out of elements at the same time.

Whatever is decided, some of the solutions will be incorrect and will need to be changed. --Spoon! 23:55, 29 November 2011 (UTC)