Easy Python Solution❤
\n\n# Code\n\nclass Solution:\n    def lastStoneWeight(self, stones: List[int]) -> int:\n        while True:\n            stones = sorted(stones,reverse = True)
\n\n# Code\n```\nclass Solution:\n    def lastStoneWeight(self, stones: List[int]) -> int:\n        while True:\n            stones = sorted(stones,reverse = True)\n            if len(stones) == 1:\n                return stones[0]\n            elif len(stones) == 0:\n                return 0\n            first = stones.pop(0)\n            sec = stones.pop(0)\n            if first == sec:\n                continue\n            else:\n                stones.append(first-sec)\n```
['Python3']