fabianun's blog

By fabianun, history, 7 years ago, In English

Hello everyone,

I am doing some segment tree problems and I get stuck in this


I just use a recursive implementation of segment tree and always get time limit. This is my code


So, can someone help me to improve the speed of my code (the segment tree) but keep doing with recursion (do not go with iterative implementation please.)

Thank you in advance.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it