https://leetcode.com/problems/remove-k-digits/


Time Limit Exceeded


```python
def removeChar(s, indx):
    return ''.join([char for index, char in enumerate(s) if index != indx])

class Solution:
    def removeKdigits(self, num: str, k: int) -> str:
        #7:18
        self.theNum = float('inf')
        def trying(numStr, k):
            if k == 0:
                if numStr == "":
                    numStr = "0"
                value = int(numStr)
                if value < self.theNum:
                    self.theNum = value
                return
            else:
                for i, _ in enumerate(numStr):
                    newStr = removeChar(numStr, i)
                    trying(newStr, k-1)
        trying(num, k)
        return str(self.theNum)
        #7:23
        #debug until 7:29
```
