|
0
Segment tree is more complicated to code than O(N + Q) |
|
0
Don't use a segment tree then |
|
+1
The complexity should be O(N + Q) |