Skills101
← All practice quizzes

Stack & Queue Quiz

8 questions10 minPass: 60%+10 XP on first pass

LIFO vs FIFO, matching brackets, RPN, Min Stack and the monotonic stack.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    A stack follows which order?

  2. Question 2Select all that apply

    Which strings are valid bracket sequences? (select all that apply)

  3. Question 3

    What does this RPN expression evaluate to: ["2", "1", "+", "3", "*"]?

  4. Question 4

    In RPN, for the tokens ["5", "2", "-"], what is the result?

  5. Question 5

    How does a Min Stack return the minimum in O(1)?

  6. Question 6

    For "Daily Temperatures" (next warmer day), the monotonic stack keeps temperatures…

  7. Question 7

    What is the time complexity of the monotonic stack solution for next greater element?

  8. Question 8

    Which Python structure should you use as a queue?