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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy