ILovePlumCakeAndIceCream's blog

By ILovePlumCakeAndIceCream, history, 8 years ago, In English

Hi everyone,Here is the link to the problem here .I got the general O(n*n) approach but It will TLE obviously .When I googled the problem,I got Chinese editorials regarding the same and they all pointed to involvement of segment trees.I could not get much details due to lack of clearity in the English text produced by the Translator .Can someone please help me regarding the same .Thanks and have a nice day :)

| Write comment?