mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 10:58:02 +00:00
Fixed Big O complexities.
This commit is contained in:
@@ -67,8 +67,8 @@
|
|||||||
"* Return the node\n",
|
"* Return the node\n",
|
||||||
" \n",
|
" \n",
|
||||||
"Complexity:\n",
|
"Complexity:\n",
|
||||||
"* Time: O(1)\n",
|
"* Time: O(n)\n",
|
||||||
"* Space: O(1)"
|
"* 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