last stone weight 2 solution in cpp
This is able to pass all test cases.
class Solution { public: int lastStoneWeightII(vector& stones