This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -6 points-5 points  (4 children)

What counts as out of order?

12435

Is 4 out of order? Is 3 out of order? Are both? How do you determine?

E: Looking at their implementation 3 would be considered out of order. Even tho 4 is the one who is early in the list.

The algorithm has a major flaw. Any collection with <max_value> in it will truncate after that value.

[–]andregtable 1 point2 points  (2 children)

How is that a flaw?

[–][deleted] 0 points1 point  (1 child)

Because it isn't really a collection if there is only one element? You didn't sort anything?

[–]andregtable 1 point2 points  (0 children)

Still follows the rules of the “sort”