I tried solving the WALK problem using the editorial but I am getting WA. Kindly tell me the error :) asked 27 Mar '14, 16:18

The question has been closed for the following reason "The question is answered, right answer was accepted" by sandy999 18 Jan '15, 12:56
@sandy999 : You logic is wrong . The answer to the problem is max(a[i]+i) for i from 0 to n1 . answered 27 Mar '14, 16:33
Thanks @vineetpaliwal I finally got AC :D
(27 Mar '14, 19:28)

try this test case: 1 6 6 1 2 3 4 5 your output is 6 but correct answer is 10 answered 27 Mar '14, 17:00
