How does this example consider this array not circular?
In here 1,-1 are forming a cycle right? Because from position 1, you go forward 1 step to position 2 (-1) and then backward 1 step to position 1. Why isn’t it considered a cycle?
Course: Grokking Coding Interview Patterns in Java - Learn Interactively
Lesson: Circular Array Loop - Grokking Coding Interview Patterns in Java