death_bringer's blog

By death_bringer, history, 22 months ago, In English

To get straight to the point. I know the basics and implementation of segment tree but I can't solve problems using it. Because I don't know its applications and advantages (Practical ones).

So can anyone have a list of problems going from easy to a medium level so that I can try to get my basics straight?

I kinda have the same problem for DSU. So, If anyone has list for that, please share it will be very helpful.

  • Vote: I like it
  • +7
  • Vote: I do not like it

| Write comment?
»
22 months ago, # |
  Vote: I like it +3 Vote: I do not like it

checkout the edu section: https://codeforces.com/edu/courses

»
22 months ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

Segment Trees Problems

Easy
  1. Range Minimum Queries
Q1
  1. Point update and Range Queries

  2. Range XOR Queries

  3. https://codeforces.com/contest/356/problem/A

Medium
  1. Range Update and point queries.
Q1
  1. https://codeforces.com/contest/482/problem/B

  2. https://codeforces.com/contest/339/problem/D

  3. https://codeforces.com/problemset/problem/459/D

Q4
Hard (Maybe try these in future)
  1. https://codeforces.com/contest/380/problem/C

  2. https://codeforces.com/contest/220/problem/E

Other than these you can checkout this awesome blog for more questions (not sorted according to difficulty).

»
22 months ago, # |
  Vote: I like it +1 Vote: I do not like it

https://www.codechef.com/certification/data-structures-and-algorithms/prepare#foundation

check out the segment tree section it lists all the standard problems related to it

»
22 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Codeforces edu and usaco guide.

»
22 months ago, # |
  Vote: I like it +2 Vote: I do not like it