| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,6 @@ class SegmentTree { | |||
| 41 | 41 | // tree's root node will contain all leaf node's sum | |
| 42 | 42 | for (let i = size - 1; i > 0; --i) { | |
| 43 | 43 | // current node's value is the sum of left child, right child | |
| 44 | - // tree[i] = tree[i * 2] + tree[i * 2 + 1] | ||
| 45 | 44 | tree[i] = tree[i * 2] + tree[i * 2 + 1] | |
| 46 | 45 | } | |
| 47 | 46 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments