Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Remove K Digits

Understanding the stack

Check Your Understanding

In Remove K Digits, why do we use a stack (monotonic increasing)?

  1. A.Stacks are always efficient
  2. B.To count the digits
  3. C.To keep track of digits in increasing order and remove peaks
  4. D.To reverse the number
Start the roadmap to answer the quizzes and solve the challenges