This repository contains my solutions to LeetCode problems. Each problem is solved in multiple languages including, but not limited to:
- Java
- Python
- C
- C++
- TypeScript
- JavaScript
- C#
- PHP
- Go
- Rust
Each folder corresponds to a specific problem and contains subfolders for each language. There are two ways I approach each problem, the optimized version and the clean version. They will each have their respective solutions in language sub-folders.
Problem # | Problem Name | Tags | Optimized Solutions | Clean Solutions |
---|---|---|---|---|
0001 | Two Sum | Array, HashTable | Link | Link |
0002 | Adding Two Numbers | Linked List, Math, Recursion | Link | Link |
0003 | Longest Substring Without Repeating Characters | Hash Table, String, Sliding Window | Link | Link |
0008 | String to Integer (atoi) | String | Link | Link |
0012 | Integer to Roman | Hash Table, Math, String | Link | Link |
0094 | Binary Tree Inorder Traversal | Binary Tree, Depth-First Search, Stack | Link | Link |
0509 | Fibonacci Number | Recursion, Math, Memoization | Link | N/A |
0912 | Sort an Array | Array, Sorting, Divide and Conquer | Link | N/A |