×

# [closed] WALK prob WA

 0 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 2★sandy999 391●1●16●38 accept rate: 10%

### The question has been closed for the following reason "The question is answered, right answer was accepted" by sandy999 18 Jan '15, 12:56

 1 @sandy999 : You logic is wrong . The answer to the problem is max(a[i]+i) for i from 0 to n-1 . answered 27 Mar '14, 16:33 12.4k●47●107●171 accept rate: 12% Thanks @vineetpaliwal I finally got AC :D (27 Mar '14, 19:28) sandy9992★
 0 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 193●3●9●27 accept rate: 23%

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×21
×4

question asked: 27 Mar '14, 16:18

question was seen: 558 times

last updated: 18 Jan '15, 12:56