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

Pubblicato il: 06 marzo 2023
sul canale di: 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.


In questa pagina del sito puoi guardare il video online 402. Remove K Digits || Top Interview Problem || Medium Level della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Mohit Bodhija 06 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 63 volte e gli è piaciuto 6 spettatori. Buona visione!