Python soln
\nclass Solution(object):\n    def removeKdigits(self, num, k):\n        """\n        :type num: str\n        :type k: int\n        :rtype: str\n        """\n  
```\nclass Solution(object):\n    def removeKdigits(self, num, k):\n        """\n        :type num: str\n        :type k: int\n        :rtype: str\n        """\n        stack = []\n        for ch in num:\n            while k > 0 and len(stack) > 0 and int(stack[-1]) > int(ch):\n                stack.pop()\n                k -= 1\n            stack.append(ch)\n        \n        while k > 0:\n            stack.pop()\n            k -= 1\n        # print(stack)\n        return "0" if len(stack) ==0 else str(int("".join(stack)))\n```
[]