A library crate containing Rust solutions to LeetCode problems, organized by difficulty level. This repository serves as a reference implementation of various algorithms and data structures.
src/
├── easy/
│ ├── two_sum.rs # Problem 1: Two Sum
│ ├── palindrome_number.rs
│ └── ...
├── medium/
│ ├── add_two_numbers.rs # Problem 2: Add Two Numbers
│ ├── longest_substring.rs
│ └── ...
└── hard/
├── median_arrays.rs # Problem 4: Median of Two Sorted Arrays
└── ...
This is not a runnable crate but rather a collection of solution implementations.
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 5. Longest Palindromic Substring
- 6. Zigzag Conversion
- 7. Reverse integer
- 8. String to integer (ATOI)
- 11. Container with the most water
- 12. Integer to roman
- 15. 3Sum
- 16. 3Sum Closest
- 17. Phone Number Letters
Contributions welcome! Please:
- Follow existing code style
- Include problem description in doc comment
- Add test cases
- Organize by difficulty level