I know that this question can be done with fenwick trees but are there any conceptual mistakes in my code where I ahce used segment trees??
…
Getting wrong answer for MAX QUERY I
process is correct may be there is some minor error in your code… you can also use build segment tree of policy based data structute for shorter code…bdw there is no conceptual error just some minor bug that you have to debug…
1 Like