Skip to content

Commit 78fe8b5

Browse files
Corrected the comment
fro->of
1 parent 9339850 commit 78fe8b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/10-binary search/code/src/com/kunal/SplitArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public int splitArray(int[] nums, int m) {
1010
int end = 0;
1111

1212
for (int i = 0; i < nums.length; i++) {
13-
start = Math.max(start, nums[i]); // in the end of the loop this will contain the max item fro the array
13+
start = Math.max(start, nums[i]); // in the end of the loop this will contain the max item of the array
1414
end += nums[i];
1515
}
1616

0 commit comments

Comments
 (0)