Welcome to my GitHub repository where I’ve uploaded solutions for various problems from LeetCode! This repo is a compilation of my solutions across a variety of coding challenges that test different aspects of problem-solving, data structures, and algorithms. Each solution is structured for clarity, efficiency, and understanding. ✨
This repository contains solutions to problems categorized by difficulty level — Easy, Medium, and Hard — covering a wide range of topics such as:
- 🟦 Arrays and Strings
- 🟩 Linked Lists
- 🟥 Stacks and Queues
- 🌳 Trees and Graphs
- 🚀 Dynamic Programming
- 💡 Greedy Algorithms
- 🧩 Sorting and Searching
- 🔄 Backtracking
- 🔁 Recursion
- 🗂️ Hash Maps
- ➕ Math-related problems
All solutions are written in Java and follow best practices to ensure clarity and efficiency. Each problem is aimed at improving algorithmic thinking and enhancing coding efficiency.
You can browse through the different folders, which are categorized by problem type or difficulty level. Each folder contains:
- 📝 Problem statement: A link to the original problem on LeetCode.
- 💻 Code solutions: Fully functional code for the problem.
- 🔍 Explanation: Solutions are commented for easy understanding of the approach and logic used.
- ⏳ Time and space complexity: Annotations specifying the complexity of each solution.
LeetCode is an excellent platform for enhancing coding skills and preparing for technical interviews. With challenges ranging from easy to hard, it’s a great way to get better at solving algorithmic problems while deepening your understanding of core computer science concepts. Through this repository, I aim to showcase my journey of growth and improvement in problem-solving. 🏆
Here’s a quick glance at how the repository is organized:
📂 Easy
├── Problem_1_Two_Sum.java
├── Problem_7_Reverse_Integer.java
└── ...
📂 Medium
├── Problem_2_Add_Two_Numbers.java
├── Problem_19_Remove_Nth_Node_From_End_of_List.java
└── ...
📂 Hard
├── Problem_23_Merge_k_Sorted_Lists.java
├── Problem_239_Sliding_Window_Maximum.java
└── ...
Each file contains code with explanations and complexity analysis.
If you'd like to contribute to this repository, feel free to:
- Fork the repository.
- Create a new branch (
git checkout -b feature/my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/my-new-feature
). - Create a new pull request.
Any contributions are welcome to enhance or add to the problem solutions! 🚀
I plan to add the following features to this repository soon:
- 🧪 Test cases for each problem to ensure correctness.
- 📝 More detailed explanations and approach discussions for harder problems.
- 🌐 Solutions in other languages such as Python, C++, etc.
A big thanks to the LeetCode community and everyone maintaining the platform for providing such an amazing resource to improve coding skills and prepare for interviews. 🏅
Feel free to explore and learn from this repository, and I hope it helps you on your own journey to becoming a better coder! Happy coding! 😄👨💻👩💻
🔗LeetCode Profile
Solved Problems:
🔹 Easy
🔸 Medium
🔺 Hard
0003-longest-substring-without-repeating-characters |
0594-longest-harmonious-subsequence |
0594-longest-harmonious-subsequence |
1472-increasing-decreasing-string |
1510-find-lucky-integer-in-an-array |
3490-find-the-maximum-length-of-valid-subsequence-i |
3491-find-the-maximum-length-of-valid-subsequence-ii |
3618-find-the-original-typed-string-ii |
3618-find-the-original-typed-string-ii |
0029-divide-two-integers |
0078-subsets |
0287-find-the-duplicate-number |
0405-convert-a-number-to-hexadecimal |
3600-find-the-k-th-character-in-string-game-i |
3601-find-the-k-th-character-in-string-game-ii |
3600-find-the-k-th-character-in-string-game-i |
3601-find-the-k-th-character-in-string-game-ii |
1478-maximum-number-of-events-that-can-be-attended |
0004-median-of-two-sorted-arrays |
0287-find-the-duplicate-number |
0004-median-of-two-sorted-arrays |
0014-longest-common-prefix |
0078-subsets |
1818-maximum-score-from-removing-substrings |
2128-reverse-prefix-of-word |
1411-convert-binary-number-in-a-linked-list-to-integer |
0183-customers-who-never-order |