An open API service indexing awesome lists of open source software.

https://github.com/pablolion/leetcode-rs

my solution to leetcode with rust
https://github.com/pablolion/leetcode-rs

Last synced: about 1 year ago
JSON representation

my solution to leetcode with rust

Awesome Lists containing this project

README

          

# leetcode-rs

my solution to leetcode with rust

## End

LeetCode doesn't support importing HashMap, HashSet, etc. These are the necessary functionalities for hard problems.
So I stopped at problem 30.

## Problem todo

- q23 is slow.
- q28 API changed, so I didn't do it.
- q30 is slow

## Essence

- if not specified, should get clear if every X appears at least / at most once.

## Rust

`String::match_indices` said `disjoint`

## What does it give?

- Solution to LeetCode problems.
- Simple complexity analyses.
- Convert files VSCE leetcode to meet Rust naming conventions. (`cargo run .`)

## Origin of the solutions?

- Most of the solution, if not specified, is generated by GitHub copilot.
- I ([PabloLION](https://github.com/PabloLION)) try to refactor the solutions to be more readable.
- Some `Solution` have a `fn XXX_pablo`, which is written by me myself. Sometimes there's also a `fn XXX_pablo_copilot`, which is suggested by GitHub Copilot.
- See git blame for more details.

## References

For all linked lists / node lists / list node :

## Thoughts on LeetCode

1. Focusing too much on the executing speed and memory usage rather than the readability.

## Miscellaneous

### How to log-in the VSCE

See GitHub:

- Get header
- Get cookie