×

# [closed] Chef and Digit Jump JUNE14 Challenge

 0 What does this mean??? i - 1 (Si-1) and i + 1 (Si+1) Can somebody explain the 2nd test case Input: 012134444444443 Output: 4 The jump sequence mentioned is 1-2-4-5-15. I am not able to understand how we got this sequence... Thanks :D asked 09 Jun '14, 04:02 6●1●1●1 accept rate: 0% 0★admin ♦♦ 19.8k●350●498●541 can any one tell me jump can be made reverse also..? Eg: 0123456754360123457 Ans 5 correct or not.? (11 Jun '14, 11:12) remogoku2★

### The question has been closed for the following reason "Other" by garakchy 09 Jun '14, 19:54

 0 It means you can jump one index left(S1-1) or one index right(Si+1). In this case chef jumps to 1 then to the second 1(index 4) then to 3(index 5) then as the last element is also 3, he can jump to the final index(15). answered 09 Jun '14, 04:46 333●2●3●9 accept rate: 20%

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:

×239
×128
×19

question asked: 09 Jun '14, 04:02

question was seen: 1,512 times

last updated: 16 Jun '14, 15:04