my-solutions/readme.md

30 lines
758 B
Markdown
Raw Normal View History

2022-12-03 12:19:24 +05:00
# Rubycode
Solutions of leetcode problems in Ruby.
2022-11-17 15:09:28 +05:00
2022-11-17 17:03:36 +05:00
- [My profile](https://leetcode.com/ordinary-dev/)
2022-12-31 12:14:39 +05:00
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
2022-11-17 17:03:36 +05:00
2022-11-25 23:43:40 +05:00
```bash
cd problems/random-problem
ruby test.rb
```
2023-03-09 00:35:49 +05:00
## 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.
2022-12-31 12:14:39 +05:00
## Structure
2022-11-17 17:03:36 +05:00
2022-11-25 23:43:40 +05:00
- `main.rb` - the solution itself
- `test.rb` - tests