Welcome to my LeetCode repository! This repository contains my personal solutions to various LeetCode problems. It serves as a log of my progress in improving my algorithmic thinking, data structure knowledge, and problem-solving skills.
Each problem has its own dedicated directory, named in the format XXXX-problem-name (where XXXX is the LeetCode problem number).
- Consistently practice coding challenges.
- Optimize solutions for better Time and Space complexities.
- Explore different approaches for the same problem (e.g., Iterative vs. Recursive, Dynamic Programming vs. Greedy).
Here is a list of the problems currently solved in this repository:
| # | Problem Name | Difficulty | Language | Topics | Link to Solution |
|---|---|---|---|---|---|
| 0001 | Two Sum | 🟢 Easy | Python | Array, Hash Table | View |
| 0002 | Add Two Numbers | 🟠 Medium | Java, Python | Linked List, Math, Recursion | View |
| 0003 | Longest Substring Without Repeating Characters | 🟠 Medium | Python | Hash Table, String, Sliding Window | View |
| 0004 | Median Of Two Sorted Arrays | 🔴 Hard | Python | Array, Binary Search, Divide and Conquer | View |
| 0006 | Zigzag Conversion | 🟠 Medium | Python | String | View |
| 0007 | Reverse Integer | 🟠 Medium | Python | Math | View |
| 0009 | Palindrome Number | 🟢 Easy | Java | Math | View |
| 0013 | Roman To Integer | 🟢 Easy | Java, Python | Hash Table, Math, String | View |
| 0014 | Longest Common Prefix | 🟢 Easy | Java | Array, String, Trie | View |
| 0021 | Merge Two Sorted Lists | 🟢 Easy | Java | Linked List, Recursion | View |
| 0026 | Remove Duplicates From Sorted Array | 🟢 Easy | Java | Array, Two Pointers | View |
| 0027 | Remove Element | 🟢 Easy | Java, Python | Array, Two Pointers | View |
| 0055 | Jump Game | 🟠 Medium | Python | Array, Dynamic Programming, Greedy | View |
| 0058 | Length Of Last Word | 🟢 Easy | Python | String | View |
| 0066 | Plus One | 🟢 Easy | Python | Array, Math | View |
| 0080 | Remove Duplicates From Sorted Array Ii | 🟠 Medium | Java, Python | Array, Two Pointers | View |
| 0088 | Merge Sorted Array | 🟢 Easy | Python | Array, Two Pointers, Sorting | View |
| 0121 | Best Time To Buy And Sell Stock | 🟢 Easy | Java | Array, Dynamic Programming | View |
| 0122 | Best Time To Buy And Sell Stock Ii | 🟠 Medium | Python | Array, Dynamic Programming, Greedy | View |
| 0169 | Majority Element | 🟢 Easy | Python | Array, Hash Table, Divide and Conquer, Sorting, Counting | View |
| 0189 | Rotate Array | 🟠 Medium | Python | Array, Math, Two Pointers | View |
| 0595 | Big Countries | 🟢 Easy | SQL | Database | View |
| 1480 | Running Sum Of 1d Array | 🟢 Easy | Java | Array, Prefix Sum | View |
| 1603 | Running Sum Of 1d Array | 🟢 Easy | Java | N/A | View |
| 1791 | Find Center Of Star Graph | 🟢 Easy | Java | Graph Theory | View |
| 1916 | Find Center Of Star Graph | 🟢 Easy | Java | N/A | View |
| 2235 | Add Two Integers | 🟢 Easy | C++ | Math | View |
| 2383 | Add Two Integers | 🟢 Easy | C++, Java | N/A | View |