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

Range queries

Answer questions about any slice of an array fast.

All categories
  • Play

    Segment tree

    Range sum, min, and max

    intermediateO(log n)
  • Play

    Lazy propagation

    Delay range updates until needed

    advanced
  • Play

    Fenwick tree

    Prefix sums with bit tricks

    intermediateO(log n)
  • Play

    Sparse table

    Constant-time range minimum

    advancedO(1) query
  • √n Play

    Sqrt decomposition

    Split the array into blocks

    advancedO(√n)
Log inStart free