📍 ✔Python3 || Using Stack || faster solution
\nclass Solution:\n    def removeKdigits(self, num: str, k: int) -> str:\n        stack = ["0"]\n        if len(num)==k:\n            return "0"\n        for i 
```\nclass Solution:\n    def removeKdigits(self, num: str, k: int) -> str:\n        stack = ["0"]\n        if len(num)==k:\n            return "0"\n        for i in range(len(num)):\n            while stack[-1] > num[i] and k > 0:\n                stack.pop()\n                k=k-1\n            stack.append(num[i])\n        while k>0:\n            stack.pop()\n            k-=1\n        while stack[0] == "0" and len(stack)>1:\n            stack.pop(0)\n        return "".join(stack)\n```
['Python', 'Python3']