Back to Browse

LeetCode | 402. Remove K Digits | Monotonic Stack | Stack

1.5K views
Feb 12, 2023
11:29

Also if not clear why we are pop from back when k is still no zero is because we need least no. possible that's why -------------------------------------------------------------------------------------------------------------------------- Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num.

Download

0 formats

No download links available.

LeetCode | 402. Remove K Digits | Monotonic Stack | Stack | NatokHD