https://github.com/utkarsh5026/leetcode_rust
Leetcode solutions in rust, mostly a learning project to start my rust learning journey 😊
https://github.com/utkarsh5026/leetcode_rust
dsa leetcode leetcode-solutions rust rust-lang
Last synced: 13 days ago
JSON representation
Leetcode solutions in rust, mostly a learning project to start my rust learning journey 😊
- Host: GitHub
- URL: https://github.com/utkarsh5026/leetcode_rust
- Owner: utkarsh5026
- Created: 2025-01-09T21:23:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T14:57:14.000Z (over 1 year ago)
- Last Synced: 2025-03-09T14:43:50.383Z (over 1 year ago)
- Topics: dsa, leetcode, leetcode-solutions, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🦀 Leetcode Solutions in Rust
Hey there! 👋 This is my personal playground where I'm learning Rust by solving Leetcode problems. I'm documenting my journey from "what the heck is ownership?" to "look ma, I'm fighting the borrow checker and winning (sometimes)!"
## What's This All About?
I'm working through Leetcode problems using Rust because:
- It's a fantastic way to learn Rust's unique features
- The problems are fun brain teasers
- Who doesn't love that feeling when the tests finally pass? 🎉
## Structure
Each solution lives in its own file under `solutions/src/sols/`. They're all thoroughly commented because future-me will definitely forget how they work!
## Some Cool Solutions So Far
- [Remove Duplicates](solutions/src/sols/p0026_remove_duplicate_from_sorted_array.rs) - Playing with pointers and in-place array manipulation
- [Merge Sorted Arrays](solutions/src/sols/p0088_merge_sorted_array.rs) - A neat backwards iteration approach
- [String Score Calculator](solutions/src/sols/p3110_score_of_string.rs) - Using Rust's awesome iterator methods
- [Array Concatenation](solutions/src/sols/p1929_concatenation_of_array.rs) - Simple but sweet vector operations
## Running the Code
```
bash
cd solutions
cargo test # Run all the tests
```
# LeetCode Solutions
This repository contains my solutions to various LeetCode problems.
## Note on Authorship
- All LeetCode solution implementations are written by me
- Documentation and tests are AI-generated using Claude