Help in the topic segment tree

Правка en1, от tomnjerry18, 2021-06-21 18:20:23

Hi guys, I have been learning segment trees from Segment Trees Hackerearth .

I am trying to solve the problem range minimum query problem given in the end the topic. I am getting wrong answer in the second input in which n = 10^5 and number queries are also 10^5.

Can anyone help me to debug the code? Link to my code Online C++ Compiler.

Теги #segment tree, #range query, #range update

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский tomnjerry18 2021-06-21 18:20:23 512 Initial revision (published)