✅ [Python] 6 Lines || SortedList || Clean
Please UPVOTE if you LIKE! \uD83D\uDE01\n\n\nfrom sortedcontainers import SortedList\n\n\nclass Solution(object):\n    def lastStoneWeight(self, stones):\n     
**Please UPVOTE if you LIKE!** \uD83D\uDE01\n\n```\nfrom sortedcontainers import SortedList\n\n\nclass Solution(object):\n    def lastStoneWeight(self, stones):\n        sl = SortedList(stones)\n        while len(sl) >= 2:\n            y = sl.pop()\n            x = sl.pop()\n            if y > x: sl.add(y - x)  # Note that sl is a SortedList\n        return sl.pop() if len(sl) else 0\n```\n**If you have any question, feel free to ask. If you like the solution or the explanation, Please UPVOTE!**
['Python']