Skip to content

Commit da7fc33

Browse files
authored
Deduplicate comment
1 parent bd391bd commit da7fc33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Maths/FindMaxRecursion.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ function findMaxRecursion (arr, left, right) {
2929
return arr[left]
3030
}
3131

32-
// x >> y == floor(x / pow(2, y))
32+
// n >> m is equivalent to floor(n / pow(2, m)), floor(n / 2) in this case, which is the mid index
3333
const mid = (left + right) >> 1
34-
35-
// n >> m is equivalent to floor(n / pow(2, m)), floor(n / 2) in this case
34+
3635
const leftMax = findMaxRecursion(arr, left, mid)
3736
const rightMax = findMaxRecursion(arr, mid + 1, right)
3837

0 commit comments

Comments
 (0)