This repository contains my personal solutions for various LeetCode problems, implemented in Java. The problems are grouped by topic and link directly to the official LeetCode page and the corresponding solution file in this repository.
| Problem | Difficulty | Solution |
|---|---|---|
| 13. Roman to Integer | 🟢 Easy | Link |
| 1281. Subtract the Product and Sum of Digits of an Integer | 🟢 Easy | Link |
| 1672. Richest Customer Wealth | 🟢 Easy | Link |
| Problem | Difficulty | Solution |
|---|---|---|
| 17. Letter Combinations of a Phone Number | 🟠 Medium | Link |
| 37. Sudoku Solver | 🔴 Hard | Link |
| 39. Combination Sum | 🟠 Medium | Link |
| 51. N-Queens | 🔴 Hard | Link |
| 79. Word Search | 🟠 Medium | Link |
| 231. Power of Two | 🟢 Easy | Link |
| 326. Power of Three | 🟢 Easy | Link |
| 342. Power of Four | 🟢 Easy | Link |
| 494. Target Sum | 🟠 Medium | Link |
| 509. Fibonacci Number | 🟢 Easy | Link |
| 704. Binary Search | 🟢 Easy | Link |
| 1342. Number of Steps to Reduce a Number to Zero | 🟢 Easy | Link |
| Problem | Difficulty | Solution |
|---|---|---|
| 33. Search in Rotated Sorted Array | 🟠 Medium | Link |
| 34. Find First and Last Position of Element in Sorted Array | 🟠 Medium | Link |
| 69. Sqrt(x) | 🟢 Easy | Link |
| 162. Find Peak Element | 🟠 Medium | Link |
| 410. Split Array Largest Sum | 🔴 Hard | Link |
| 704. Binary Search | 🟢 Easy | Link |
| 744. Find Smallest Letter Greater Than Target | 🟢 Easy | Link |
| 852. Peak Index in a Mountain Array | 🟢 Easy | Link |
| 1095. Find in Mountain Array | 🔴 Hard | Link |
| Problem | Difficulty | Solution |
|---|---|---|
| 2. Add Two Numbers | 🟠 Medium | Link |
| 21. Merge Two Sorted Lists | 🟢 Easy | Link |
| 25. Reverse Nodes in k-Group | 🔴 Hard | Link |
| 61. Rotate List | 🟠 Medium | Link |
| 83. Remove Duplicates from Sorted List | 🟢 Easy | Link |
| 92. Reverse Linked List II | 🟠 Medium | Link |
| 141. Linked List Cycle | 🟢 Easy | Link |
| 142. Linked List Cycle II | 🟠 Medium | Link |
| 143. Reorder List | 🟠 Medium | Link |
| 148. Sort List | 🟠 Medium | Link |
| 202. Happy Number | 🟢 Easy | Link |
| 206. Reverse Linked List | 🟢 Easy | Link |
| 234. Palindrome Linked List | 🟢 Easy | Link |
| 876. Middle of the Linked List | 🟢 Easy | Link |
| Problem | Difficulty | Solution |
|---|---|---|
| 20. Valid Parentheses | 🟢 Easy | Link |
| 232. Implement Queue using Stacks | 🟢 Easy | Link |
| 921. Minimum Add to Make Parentheses Valid | 🟠 Medium | Link |