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 c4a4706 commit 757ed10Copy full SHA for 757ed10
kata/7-kyu/loop-detector/main/Kata.java
@@ -2,6 +2,6 @@
2
3
interface Kata {
4
static boolean hasLoop(int[] arr) {
5
- return iterate(0, i -> arr[i]).limit(arr.length + 1).allMatch(i -> i < arr.length);
+ return iterate(0, i -> arr[i]).limit(arr.length + 1L).allMatch(i -> i < arr.length);
6
}
7
0 commit comments