benburk·5 年前·議論Also 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
Here's my solution https://news.ycombinator.com/item?id=28170735