Fixed Big O complexities.

This commit is contained in:
Donne Martin 2015-08-13 06:48:52 -04:00
parent d6efaca8d8
commit d99db4e110

View File

@ -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)"
]
},
{