Skip to content

Instantly share code, notes, and snippets.

def print_out_specific_level(level)
traverse_specific_level(root_node, 1, level)
end
def traverse_specific_level(node, current_level, desired_level)
if (current_level == desired_level)
puts node.val
return
end
Steve@steve-work ~/work$ rvm install 1.9.3-p385
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p385.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
-bash: --version: command not found
Installing Ruby from source to: /Users/Steve/.rvm/rubies/ruby-1.9.3-p385, this may take a while depending on your cpu(s)...
ruby-1.9.3-p385 - #downloading ruby-1.9.3-p385, this may take a while depending on your connection...
Error running '/Users/Steve/.rvm/scripts/fetch http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p385.tar.bz2', please read /Users/Steve/.rvm/log/ruby-1.9.3-p385/fetch.log
There has been an error fetching the ruby interpreter. Halting the installation.
-bash: --version: command not found
Steve@steve-work ~/work$ cat /Users/Steve/.rvm/log/ruby-1.9.3-p385/fetch.log