Anonymous user
Talk:Sorting algorithms/Strand sort: Difference between revisions
Talk:Sorting algorithms/Strand sort (view source)
Revision as of 17:15, 3 August 2012
, 11 years agono edit summary
No edit summary |
|||
Line 2:
The D entry code (that maybe was written by Fwend) contains one or more bugs, it prints "-1 -1" even if the input contains only one -1.
: The linearRemove does sometimes not remove the first item, although "find" and "take" return the correct result. I've posted a workaround but I haven't been able to trace the actual problem. [[User:Fwend|Fwend]] 16:18, 3 August 2012 (UTC)
::
import std.random, std.conv;
Line 15 ⟶ 14:
assert(result == sortedData, text("\n", data, "\n", result, "\n", sortedData));
}
}</lang>[[User:Bearophile|bearophile]]
|