Simple Javascript Soluton ---> Recursion
\nvar lastStoneWeight = function(stones) {\n    if(stones.length < 2) return stones;\n    stones.sort((a,b) => a-b);\n    let a = stones.pop();\n    let b = sto
```\nvar lastStoneWeight = function(stones) {\n    if(stones.length < 2) return stones;\n    stones.sort((a,b) => a-b);\n    let a = stones.pop();\n    let b = stones.pop();\n    stones.push(Math.abs(a-b));\n    return lastStoneWeight(stones);\n};\n```
['Recursion', 'JavaScript']