New answers tagged

4 votes
Accepted

Last Stone Weight Problem in Haskell using list `insert`

Our first question should be "why is it O(N^2)?" The sort seems to be a merge-sort; I trust that it's O(n log(n)). But ...
ShapeOfMatter's user avatar

Top 50 recent answers are included