Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Remove K Digits
Understanding the stack
Check Your Understanding
In Remove K Digits, why do we use a stack (monotonic increasing)?
- A.Stacks are always efficient
- B.To count the digits
- C.To keep track of digits in increasing order and remove peaks
- D.To reverse the number