664. Smallest Possible Number
0
Medium
Given a string representation of a non-negative integer N, remove k digits from the number to create the smallest possible new number.
Input Format
Input N and K as space-separated values.
Output Format
Print the new number that is the smallest possible.
Example
Input
1432219 3
Output
1219
Constraints
Note:
1.The length of N is less than 10^5.
2.The given N does not contain any leading zero.
1.The length of N is less than 10^5.
2.The given N does not contain any leading zero.
Loading...
View Submissions
Console