ayoubed.com
  • Home
  • Problem Solving
  • Software Engineering
  • Books
  • Betterment
  • Author
Sign in Subscribe

segment-trees

A collection of 1 post
Segment Trees, and how you can crack range queries problems
problem-solving

Segment Trees, and how you can crack range queries problems

A quick refresher on segment trees A segment tree is a data structure that allows answering range queries like the sum of subarray a[[l...r] or the minimum element in such a range in O(log n). The segment trees require a linear amount of memory and modify one
08 Oct 2021 5 min read
Page 1 of 1
ayoubed.com © 2026
Powered by Ghost