I_Love_Hanh_Trinh's blog

By I_Love_Hanh_Trinh, 11 years ago, In English

Hi everybody, Now, I'm trying to solve this problem in SPOJ (Here link). But i don't have any idea. Can someone help me, pls? Thanks.

»
11 years ago, hide # |
 
Vote: I like it -17 Vote: I do not like it

I would use HLD + segment tree.