Post–Le Wagon Ruby fundamentals & data structures/algorithms practice.
Each problem lives in its own folder under problems/, with a spec so I can
verify my solution before pushing.
problems/
001-example/
problem.md # the problem statement
solution.rb # my solution
spec/
solution_spec.rb # tests for the solution
- Get a new problem, scaffolded via
bin/new_problem <slug>. - Read
problem.md, write my solution insolution.rb. - Run the spec:
bundle exec rspec problems/<folder>/spec - Once green, commit and push.
bundle installbundle exec rspecbin/new_problem 002-two-sum