Skip to content

Commit

Permalink
Did pre-order
Browse files Browse the repository at this point in the history
  • Loading branch information
Mae committed Sep 24, 2014
1 parent c812a61 commit dcadfe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/traverse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def self.with_preorder(node)
end

def self.with_inorder(node)
# TODO
with_inorder(node.left_child)
capture(node.data)
with_inorder(node.right_child)
end

def self.with_postorder(node)
Expand Down

0 comments on commit dcadfe6

Please sign in to comment.