algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Add "last stone weight"

Open domfarolino opened this issue 5 years ago • 0 comments

See: https://leetcode.com/problems/last-stone-weight/description/. It's a good problem about using a binary search tree / set, but also needing to keep track of occurrences/duplicates. You can use a map or a multiset for this, which is nice.

domfarolino avatar Apr 12 '20 16:04 domfarolino