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
- Host: GitHub
- URL: https://github.com/pablolion/leetcode-rs
- Owner: PabloLION
- License: mit
- Created: 2022-08-02T02:33:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T07:01:24.000Z (over 3 years ago)
- Last Synced: 2025-02-09T07:36:04.581Z (over 1 year ago)
- Language: Rust
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: support/4.median-of-two-sorted-arrays.py
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