06.16 · Problem
Erase K Digits for the Smallest Number
This problem is part of solulu Pro
A number is written as a string of digits. Remove exactly k digits so that the remaining number is as small as possible. Return it as a string with no leading zeros (return "0" if nothing is left).
Lifetime ₹2,000 ₹1,000 · Beta offer
Item 70 of 94 · updated 2026-10-12