From 5a697d7e7c0c2ecb2d943a8fef330b4e299256ca Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Thu, 13 Aug 2015 06:52:32 -0400 Subject: [PATCH] Fixed Big O space complexity. --- graphs_trees/tree_height/height_solution.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphs_trees/tree_height/height_solution.ipynb b/graphs_trees/tree_height/height_solution.ipynb index 42d5b4c..520b66c 100644 --- a/graphs_trees/tree_height/height_solution.ipynb +++ b/graphs_trees/tree_height/height_solution.ipynb @@ -62,7 +62,7 @@ " \n", "Complexity:\n", "* Time: O(n)\n", - "* Space: O(log n)" + "* Space: O(h), where h is the height of the tree" ] }, {