User profile: sc7

User info
User name:sc7
History
Joined:
Number of posts:36
Latest posts:

how to optimze this code ?
@ne555 thanks for the help in this, I have learnt a very useful data structure. for everyone else, s...

How to do this type of question
why not simply use graph for connecting and bfs to see whether they are connected or not, seems pret...

how to optimze this code ?
Ok, I got the segment tree constructution [code] //SegTree consstruction int cnt=1; int val=pow(2...

how to optimze this code ?
oh , ok yes I get it now, so what if, when l> r I return 10^18 ? I think that has to solve the probl...

how to optimze this code ?
@ne555 [quote]about `findClosest()', it should be similar to lower_bound() upper_bound() not going t...