mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-08 18:38:03 +00:00
Fixed Big O complexities.
This commit is contained in:
@@ -67,8 +67,8 @@
|
||||
"* Return the node\n",
|
||||
" \n",
|
||||
"Complexity:\n",
|
||||
"* Time: O(1)\n",
|
||||
"* Space: O(1)"
|
||||
"* Time: O(n)\n",
|
||||
"* Space: O(h), where h is the tree's height (since this is a tree with minimum height, h = log n)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user