C++ Solution to Leetcode 402. Remove K Digits
Problem statement
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 ...
nhutnguyen.hashnode.dev3 min read