Revised dfs challenge to be more self contained for simplicity.

This commit is contained in:
Donne Martin
2015-08-01 16:47:41 -04:00
parent 69f68287e3
commit e55c7ee1c6
3 changed files with 41 additions and 39 deletions

View File

@@ -23,10 +23,6 @@ class TestDfs(object):
root.post_order_traversal(sys.stdout.write)
assert_equal(out.getvalue().strip(), '13285')
with captured_output() as (out, err):
root.bfs(sys.stdout.write)
assert_equal(out.getvalue().strip(), '52813')
root = Node(1)
root.insert(2)
root.insert(3)