>RunTimeFix
BookStudyPracticeInterviewsYouTubeCoursesAbout
Log inGet Started
Practice/Segment Trees & Fenwick Trees
4 subtopics · 14 problems

Segment Trees & Fenwick Trees

Point update + range query, lazy propagation, and BIT variants.

01Segment Tree — Point Update, Range Query

Point update, range query in O(log n).

2 medium2 hard
ProblemDifficultyLink
339DXenia and Bit OperationsmediumSolve
1904BCollecting GamemediumSolve
1862EKolya and Movie TheatrehardSolve
1837EPlayoff FixinghardSolve

02Segment Tree — Lazy Propagation

Range update + range query in O(log n) with lazy tags.

1 medium3 hard
ProblemDifficultyLink
580CKefa and ParkmediumSolve
380CSereja and BracketshardSolve
474EPillarshardSolve
242EXOR on SegmenthardSolve

03Fenwick Tree (BIT)

Simpler alternative to segment tree for prefix sum + point update.

2 medium2 hard
ProblemDifficultyLink
1843ETracking SegmentsmediumSolve
1579E2Array Optimization by Deque (hard)mediumSolve
1881EBlock SequencehardSolve
1904DSet To MaxhardSolve

04Merge Sort Tree

Segment tree where each node stores a sorted list — answer order-statistic range queries.

2 hard
ProblemDifficultyLink
474EPillarshardSolve
785EAnton and PermutationhardSolve
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.