This gem have script for calculate the largest sum of a triangle.
Add this line to your application's Gemfile:
gem 'helltriangle'And then execute:
$ bundle update
Or install it yourself as:
$ gem install helltriangle
Run command
Helltriangle::execute([[1],[1,2],[1,2,3]])Run rspec to run the tests.
Bug reports and pull requests are welcome on GitHub at https://github.com/evandropassos/helltriangle.