Talk:Order two numerical lists: Difference between revisions

more on test cases
(more on test cases)
Line 7:
::"ordered before" is the familar concept of "less than." For programming anyway, less than always means strictly less than and never less than or maybe equal to. A fix would be to change "If the first list runs out of elements the result is true. false otherwise" to "If the first list runs out of elements ''while there are still elements left in the second'' the result is true. false otherwise." Then you have strictly less than semantics...which could be used to write a stable sort algorithm. —[[User:Sonia|Sonia]] 04:09, 30 November 2011 (UTC)
:: I would be in favor of clarifying the required behavior when lists are equal, removing all talk of sorting from the task description, and requiring output from three test cases: one where the first list should be ordered before, one where the lists are equal, and one where the second list should be ordered before. —[[User:Sonia|Sonia]] 04:29, 30 November 2011 (UTC)
::: Have a look at the test cases below. You may find you need more that 3 cases. --[[User:Dgamey|Dgamey]] 04:49, 30 November 2011 (UTC)
 
Whatever is decided, some of the solutions will be incorrect and will need to be changed. --[[User:Spoon!|Spoon!]] 23:55, 29 November 2011 (UTC)
Anonymous user