Skip to content

Commit 877402c

Browse files
code fix in array max.java
1 parent ad6179d commit 877402c

File tree

1 file changed

+1
-1
lines changed
  • lectures/08-arrays/code/src/com/kunal

1 file changed

+1
-1
lines changed

lectures/08-arrays/code/src/com/kunal/Max.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String[] args) {
99
// work on edge cases here, like array being null
1010
static int maxRange(int[] arr, int start, int end) {
1111

12-
if (end > start) {
12+
if (start > end) {
1313
return -1;
1414
}
1515

0 commit comments

Comments
 (0)