Remove exactly k digits from a string of digits to produce the smallest possible integer.
Constraints
Example
>>> remove_k_digits('1432219', 3)
'1219'
>>> remove_k_digits('10200', 1)
'200'
>>> remove_k_digits('10', 2)
'0'
>>> remove_k_digits('9', 1)
'0'
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints