We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bf079 commit a48c8fdCopy full SHA for a48c8fd
Solutions/0370. 区间加法.md
@@ -28,7 +28,7 @@
28
- 然后遍历三元组操作,进行区间累加运算。
29
- 最后从线段树中查询数组所有元素,返回该数组即可。
30
31
-这样构建线段树的时间复杂度为 $O(log_2n)$,单次区间更新的时间复杂度为 $O(log_2n)$,单次区间查询的时间复杂度为 $O(log_2n)$。总体时间复杂度为 $O(log_2n)$。
+这样构建线段树的时间复杂度为 $O(\log n)$,单次区间更新的时间复杂度为 $O(\log n)$,单次区间查询的时间复杂度为 $O(\log n)$。总体时间复杂度为 $O(\log n)$。
32
33
### 思路 1:线段树代码
34
0 commit comments