GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn · DSA

Stacks and queues

Ordered access from one end or both.

All categories
  • Play

    Stack

    Last in, first out

    beginnerO(1) push/pop
  • Play

    Queue

    First in, first out

    beginnerO(1)
  • Play

    Circular queue

    Wrap around a fixed buffer

    beginner
  • Play

    Deque

    Push and pop at both ends

    intermediate
  • 1 Play

    Priority queue

    Always serve the most important

    intermediateO(log n)
  • Play

    Monotonic stack

    Next greater element in one pass

    intermediateO(n)
  • Play

    Monotonic queue

    Sliding window maximum

    advancedO(n)
Log inStart free