my-solutions/readme.md

758 B

Rubycode

Solutions of leetcode problems in Ruby.

I don't claim to be the best programmer. These solutions may not be the most optimal, but these are my solutions.

How to run

cd problems/random-problem
ruby test.rb

Why Ruby?

Solving problems in Ruby can be a lot more fun than it first appears. Although it is a relatively simple programming language that does not require manual memory manipulation, it is also a relatively slow language. Sub-optimal C or Rust solutions will pass all tests, but Ruby or Python solutions will not be able to meet the time limit. This forces us to look for optimized algorithms.

Structure

  • main.rb - the solution itself
  • test.rb - tests