1
Given a array of N elements and a number k, then find the sum of maximum of a all continuous blocks of length k?
Examples :
A = {2,5,2}, k = 2, Max for 1st block = 5, 2nd block = 5, So sum is 10.
A = {3,1,8}, k = 2, Max for 1st block = 3, 2nd block = 8, So sum is 11.
A = {2,5,2}, k = 1, Max fo...