Fixed Big O space complexities.

This commit is contained in:
Donne Martin 2015-08-13 06:52:15 -04:00
parent e50dff94b0
commit 224aef1d47

View File

@ -75,7 +75,7 @@
"\n",
"Complexity:\n",
"* Time: O(n)\n",
"* Space: O(log n)\n",
"* Space: O(h), where h is the height of the tree\n",
"\n",
"Note:\n",
"* This is a form of a depth-first traversal\n",
@ -88,7 +88,7 @@
"\n",
"Complexity:\n",
"* Time: O(n)\n",
"* Space: O(log n)\n",
"* Space: O(h), where h is the height of the tree\n",
"\n",
"Note:\n",
"* This is a form of a depth-first traversal\n",
@ -101,7 +101,7 @@
"\n",
"Complexity:\n",
"* Time: O(n)\n",
"* Space: O(log n)\n",
"* Space: O(h), where h is the height of the tree\n",
"\n",
"Note:\n",
"* This is a form of a depth-first traversal"