Skip to content

Instantly share code, notes, and snippets.

@shadeslayer
Created April 4, 2015 21:08
Show Gist options
  • Save shadeslayer/fcf41b2f5214b4e2a09a to your computer and use it in GitHub Desktop.
Save shadeslayer/fcf41b2f5214b4e2a09a to your computer and use it in GitHub Desktop.
require "./node"
root = Node.new(3)
root.left = Node.new(2)
root.right = Node.new(1)
root.each { |x| puts x.data }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment