Update readme, rename problems
directory
This commit is contained in:
parent
ee78ba4a9b
commit
283cbb492d
38 changed files with 8 additions and 12 deletions
20
readme.md
20
readme.md
|
@ -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.
|
||||
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
|
||||
cd problems/random-problem
|
||||
cd 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.
|
||||
It is 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
|
||||
|
|
Loading…
Reference in a new issue