Last Stone Weight || Python || Easy || 48 ms
\nclass Solution:\n    def lastStoneWeight(self, stones: List[int]) -> int:\n        while(len(stones)>1):\n            p = max(stones)\n            pi= stones.
```\nclass Solution:\n    def lastStoneWeight(self, stones: List[int]) -> int:\n        while(len(stones)>1):\n            p = max(stones)\n            pi= stones.index(p)\n            stones.pop(pi)\n            q = max(stones)\n            qi = stones.index(q)\n            stones.pop(qi)\n            stones.append(p-q)\n        return stones[0]    \n ```
['Python']