Quiz: Tracking Minimum in O(1)

Test your understanding

Check Your Understanding

To get the minimum element in O(1) as elements are pushed and popped, what should you track?

  1. A.The minimum value at each stack level
  2. B.Just the current minimum value
  3. C.A sorted list of all elements
  4. D.The index of the minimum element
Start the roadmap to answer the quizzes and solve the challenges