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 e833876 commit 0909153Copy full SHA for 0909153
938. Range Sum of BST .playground/Contents.swift
@@ -26,6 +26,7 @@ public class TreeNode {
26
# Complexity
27
- Time complexity:
28
O(log n) where `n` is `root.nodes.size`
29
+ O(n) where all nodes values are in the range `low...high`
30
31
- Space complexity:
32
O(1) or O(n) where `n` is the depth of the call stack
0 commit comments