my-solutions/readme.md

44 lines
593 B
Markdown
Raw Normal View History

2022-11-17 15:09:28 +05:00
# Leetcode
2022-11-17 17:03:36 +05:00
- [My profile](https://leetcode.com/ordinary-dev/)
## How to run solutions
For programs written in C:
2022-11-25 23:06:02 +05:00
```bash
2022-11-17 17:03:36 +05:00
cd problems/random-problem
make
make run
```
2022-11-25 23:06:02 +05:00
For programs written in Rust:
```bash
cd problems/random-problem
cargo test
```
2022-11-25 23:43:40 +05:00
For programs written in Ruby:
```bash
cd problems/random-problem
ruby test.rb
```
2022-11-17 17:03:36 +05:00
## Solution structure
For programs written in C:
- `lib.c` - the solution itself
- `main.c` - tests
2022-11-25 23:06:02 +05:00
For programs written in Rust:
- `src/lib.rs` - solution and tests
2022-11-25 23:43:40 +05:00
For programs written in Ruby:
- `main.rb` - the solution itself
- `test.rb` - tests