402. Remove K Digits || Top Interview Problem || Medium Level

Published: 06 March 2023
on channel: Mohit Bodhija
63
6

Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num.

Example 1:

Input: num = "1432219", k = 3
Output: "1219"
Explanation: Remove the three digits 4, 3, and 2 to form the new number 1219 which is the smallest.


On this page of the site you can watch the video online 402. Remove K Digits || Top Interview Problem || Medium Level with a duration of hours minute second in good quality, which was uploaded by the user Mohit Bodhija 06 March 2023, share the link with friends and acquaintances, this video has already been watched 63 times on youtube and it was liked by 6 viewers. Enjoy your viewing!