Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jin/algorithms_and_data_structures.rb

Implementations of algorithms, data structures and HackerRank solutions in Ruby.
https://github.com/jin/algorithms_and_data_structures.rb

algorithms data-structures interview-practice ruby

Last synced: 18 days ago
JSON representation

Implementations of algorithms, data structures and HackerRank solutions in Ruby.

Awesome Lists containing this project

README

        

# Algorithms & Data Structure implementations in Ruby.

Fascinated and curious about Ruby's expressiveness, this repository contains
my implementations of fundamental CS concepts along with miscellaneous
HackerRank solutions.

## Inline evaluation

You might stumble across inline comments containing the evaluation of the
statement on that line, e.g.

```ruby
ary = [1, 2, 3, 4]
ary # => [1, 2, 3, 4]
```

This is accomplished with the amazing
[vim-ruby-xmpfilter](https://github.com/t9md/vim-ruby-xmpfilter). More
information
[here](http://commandercoriander.net/blog/2012/10/10/evaluate-lines-of-ruby-in-vim/).

## Benchmark gem

The comparison-benchmark scripts use `benchmark-bigo` addon gem for the `benchmark` stdlb. It requires `gnuplot` to be installed to generate terminal graphs.