You are viewing a single comment's thread. Return to all comments →
Agree. Although I used segmented tree, it was no need to know max on each step. Amansbhandari in fact used dirac delta and theta functions instead.
Array Manipulation
You are viewing a single comment's thread. Return to all comments →
Agree. Although I used segmented tree, it was no need to know max on each step. Amansbhandari in fact used dirac delta and theta functions instead.