30 lines
758 B
Markdown
30 lines
758 B
Markdown
# Rubycode
|
|
|
|
Solutions of leetcode problems in Ruby.
|
|
|
|
- [My profile](https://leetcode.com/ordinary-dev/)
|
|
|
|
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
|
|
|
|
```bash
|
|
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
|