Re:Stacksort – Searches StackOverflow for sorting functions ...
by CarVac on Monday November 05, 2018 @10:19AM
(#18382914)
It only checks that the output is sorted, not that it's a sorted version of the original string.
The first answer that apparently works has a comment stating that it fails with more than 2 duplicates; indeed I tried a list with three 3s and the resulting passing answer only had one of those threes.
Re:Stacksort – Searches StackOverflow for sorting functions ...
by gr3yh47 on Monday November 05, 2018 @11:35AM
(#18383655)
that's because that answer is for how to find unique values in an array. it works as intended with any duplicates, stacksort just chose an answer that wasnt only sorting
The first answer that apparently works has a comment stating that it fails with more than 2 duplicates; indeed I tried a list with three 3s and the resulting passing answer only had one of those threes.