mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
Fixed Big O space complexities.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user