Ensure that you are logged in and have the required permissions to access the test.
Given an integer N with D digits without any leading zeroes. Find the largest number which can be obtained by deleting exactly K digits from the number N.
Note
Input format
Output format
Return the largest number which can be obtained by deleting exactly K digits from the number N.
Constraints
N>01≤D≤1060≤K<D