4 ms·Thanks. I was inconsistent in my use of >= and >. Making them consistent has fixed this edge case.by alecst 5y agoThanks. I was inconsistent in my use of >= and >. Making them consistent has fixed this edge case.benburk 5y agoAlso fails for [3, 3, 2, 2, 1, 1] -> [[3, 3], [2, 2], [1, 1]] Here's my solution https://news.ycombinator.com/item?id=28170735 https://news.ycombinator.com/item?id=28170735eesmith 5y agoAnd for [1]; the "return sorted(arr)" needs to be "return [sorted(arr)]".