We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084731b commit 616789bCopy full SHA for 616789b
src/main/java/com/fishercoder/solutions/_457.java
@@ -31,7 +31,8 @@ public boolean circularArrayLoop(int[] nums) {
31
continue;
32
}
33
// slow/fast pointer
34
- int j = i, k = getIndex(i, nums);
+ int j = i;
35
+ int k = getIndex(i, nums);
36
while (nums[k] * nums[i] > 0 && nums[getIndex(k, nums)] * nums[i] > 0) {
37
if (j == k) {
38
// check for loop with only one element
0 commit comments