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

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

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!