my-solutions/readme.md

32 lines
423 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-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