Update readme, rename problems directory

This commit is contained in:
Ivan R. 2023-11-29 11:09:53 +05:00
parent ee78ba4a9b
commit 283cbb492d
Signed by: lumin
GPG key ID: 927D3132247BDE4E
38 changed files with 8 additions and 12 deletions

View file

@ -1,29 +1,25 @@
# Rubycode # My solutions
Solutions of leetcode problems in Ruby. Solutions to various programming problems.
- [My profile](https://leetcode.com/ordinary-dev/) - [My leetcode profile](https://leetcode.com/ordinary-dev/)
I don't claim to be the best programmer. I don't claim to be the best programmer.
These solutions may not be the most optimal, but these are my solutions. These solutions may not be the most optimal, but these are my solutions.
## How to run ## How to run and test my solutions
Ruby:
```bash ```bash
cd problems/random-problem cd random-problem
ruby test.rb ruby test.rb
``` ```
## Why Ruby? ## Why Ruby?
Solving problems in Ruby can be a lot more fun than it first appears. 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 relatively slow language.
it is also a relatively slow language.
Sub-optimal C or Rust solutions will pass all tests, Sub-optimal C or Rust solutions will pass all tests,
but Ruby or Python solutions will not be able to meet the time limit. but Ruby or Python solutions will not be able to meet the time limit.
This forces us to look for optimized algorithms. This forces us to look for optimized algorithms.
## Structure
- `main.rb` - the solution itself
- `test.rb` - tests