https://github.com/arkeasz/leetcode
A collection of my solutions to LeetCode problems
https://github.com/arkeasz/leetcode
algorithms data-structures javascript leetcode python rust
Last synced: 6 months ago
JSON representation
A collection of my solutions to LeetCode problems
- Host: GitHub
- URL: https://github.com/arkeasz/leetcode
- Owner: arkeasz
- Created: 2024-04-02T02:33:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T03:45:16.000Z (11 months ago)
- Last Synced: 2025-02-14T16:04:10.890Z (8 months ago)
- Topics: algorithms, data-structures, javascript, leetcode, python, rust
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode Solutions 🚀
This repository contains my solutions to various problems on [LeetCode](https://leetcode.com/). Each problem is solved in **Rust** and includes comments to make the code easier to understand.
## Problems Solved
| # | Problem | Solution | Difficulty | Language |
|---|---------|----------|------------|--------|
| 1 | [Two Sum](https://leetcode.com/problems/two-sum/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_one/main.py) | Easy | Python |
| 2 | [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_two/main.rs) | Medium | Rust |
| 3 | [Longest substring without repeating characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_three/main.js) | Medium | Javascript |
| 4 | [Median of Two Sorted Arrays](https://leetcode.com/problems/median-of-two-sorted-arrays) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_four/main.js) | Hard | Javascript |
| 5 | [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_five/main.js) | Medium | Python |
| 6 | [Zigzag Conversion](https://leetcode.com/problems/zigzag-conversion/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_six/main.js) | Medium | Python |
| 7 | [Reverse Integer](https://leetcode.com/problems/reverse-integer/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_seven/main.js) | Medium | Python |
| 8 | [String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_eight/main.py) | Medium | Python |
| 9 | [Palindrome Number](https://leetcode.com/problems/palindrome-number) | [Solution](https://github.com/arkeasz/leetcode/tree/main/prom_nine/main.rs) | Easy | Python |## About
LeetCode challenges are a great way to improve problem-solving and coding skills. This repository is part of my journey to enhance my skills in:
- **Data Structures**
- **Algorithms**
- **Rust Programming**## Running the Code
1. Clone the repository:
```bash
git clone https://github.com/arkeasz/leetcode.git
cd leetcode-solutions
```
2. Two options:- option 1: Run the code for a specific solution (e.g., `two_sum.rs`)
- option 2:
```bash
go build run.go
./run [folder_name]
```
Replace `[folder_name]` with the folder name containing the solution (e.g., `prom_one` or `prom_two`).## Feedback
Feel free to open issues or suggest improvements. Contributions are also welcome!