We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
1) Increment jump count on every 1 occurence
2) Count zero occurences to calcutae jump between zeros
3) Increment jump count on last iteration if second last number is not 1
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →
1) Increment jump count on every 1 occurence 2) Count zero occurences to calcutae jump between zeros 3) Increment jump count on last iteration if second last number is not 1
fun jumpingOnClouds(c: Array): Int {
}