maximum contiguous sum in the range [l,r] .
http://www.spoj.com/problems/GSS1/ GSS1 - Can you answer these queries I In this question we have to find the maximum contiguous sum in the range[l,r]. To find this 1) total sum is required 2) suffix max is required 3) prefix max is required = max(left child prefix max , left child sum + ri8 child prefix max ). 4) maximum contiguous = max ( ri8 child maximum contiguous , left child maximum contiguous, left child suffix max + ri8 child prefix max ) ...