Update graph dfs challenge (#119)

Fix algorithm space complexity.
This commit is contained in:
Donne Martin 2016-11-15 05:17:28 -05:00 committed by GitHub
parent 627ade950f
commit a0944eb5f4

View File

@ -81,7 +81,7 @@
"\n",
"Complexity:\n",
"* Time: O(V + E), where V = number of vertices and E = number of edges\n",
"* Space: O(V + E)"
"* Space: O(V), for the recursion depth"
]
},
{