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.
I've made a correction in my code and the output for ibexxx's input is 'YES'.I just exchanged the first if statement and the else if statement following it. Yet the 5 testcases fail.
I changed these lines
Java 1D Array (Part 2)
You are viewing a single comment's thread. Return to all comments →
I've made a correction in my code and the output for ibexxx's input is 'YES'.I just exchanged the first if statement and the else if statement following it. Yet the 5 testcases fail. I changed these lines
which makes jumps of 4,4,4 to
which makes jumps of 1,1,4,4,4.
Now your code fails on: