Search⌘ K
AI Features

Remove K Digits

Remove K Digits asks you to delete exactly k digits from a non-negative integer string and return the smallest number that can be formed from the remaining digits.

Statement

Given a string, num, that represents a non-negative integer and an integer k, ...