>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/Sparse Table, Sqrt Decomposition & More
3 subtopics · 7 problems

Sparse Table, Sqrt Decomposition & More

Sparse table for static RMQ, sqrt decomposition, and Mo's algorithm.

01Sparse Table & RMQ

O(1) range minimum/maximum queries after O(n log n) build.

2 medium1 hard
ProblemDifficultyLink
1904BCollecting GamemediumSolve
474DFlowersmediumSolve
872DBroken BSThardSolve

02Sqrt Decomposition

Divide the array into blocks of √n for balanced query/update.

2 hard
ProblemDifficultyLink
455DSerega and FunhardSolve
785EAnton and PermutationhardSolve

03Mo's Algorithm

Offline range queries in O((n + q) √n) with add/remove operations.

2 hard
ProblemDifficultyLink
617EXOR and Favorite NumberhardSolve
86DPowerful arrayhardSolve
All TopicsStudy the Theory
Was this helpful?
>RunTimeFix

Practical programming education. Books, videos, courses, and hands-on learning for competitive programming, DSA, and software engineering.

RunTimeFix

  • About
  • YouTube
  • Book
  • Study Library
  • Courses

Learn

  • Competitive Programming
  • DSA
  • Development
  • Databases

Legal

  • Privacy
  • Terms
  • Refund Policy

RunTimeFix — debug → solve → run

© 2026 RunTimeFix. All rights reserved.