Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby DSA Practice

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.

Structure

problems/
  001-example/
    problem.md       # the problem statement
    solution.rb       # my solution
    spec/
      solution_spec.rb # tests for the solution

Workflow

  1. Get a new problem, scaffolded via bin/new_problem <slug>.
  2. Read problem.md, write my solution in solution.rb.
  3. Run the spec: bundle exec rspec problems/<folder>/spec
  4. Once green, commit and push.

Setup

bundle install

Running all specs

bundle exec rspec

Adding a new problem

bin/new_problem 002-two-sum

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages