LeetCode

Last Stone Weight II

Click here for an explanation.