algorithms
algorithms copied to clipboard
Add "last stone weight"
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.