Ruby implementation of data structures and Algorithms
This repository contains Ruby implementation of various Algorithms and Data structures
Simply run ruby some_file.rb
to execute the algorithm. At the bottom of each file there are some test samples.
example: ruby longest_consecutive_subsequence.rb
will print:4
.
Did you find a bug? any way to do it better? please feel free to pull-request it :)
algorithms_ruby