Welcome! This repository contains my journey of learning and practicing Data Structures and Algorithms (DSA) using Java.
The purpose of this repository is to strengthen my problem-solving skills, improve my understanding of algorithms, and document my learning with clear explanations.
Each solution includes:
- 📝 Problem explanation in simple language
- 💡 Intuition behind the solution
- 🚀 Step-by-step approach
- 🧠 Dry run with an example
- ⏱️ Time & Space Complexity analysis
- ☕ Clean and well-structured Java implementation
The explanations are written to be easy to understand and useful for quick revision.
- Improve problem-solving skills
- Master Data Structures and Algorithms
- Build strong logical thinking
- Write clean and efficient Java code
- Create a well-documented learning resource
- Java
Repository/
│
├── README.md
├── Solution.java
└── Additional files (if required)
Each solution directory contains:
README.md— Explanation, approach, dry run, and complexity analysisSolution.java— Java implementation
This repository is updated regularly as I continue learning new concepts and solving algorithmic challenges.
Every solution reflects my understanding at the time and serves as a reference for future revision and improvement.
If you find this repository useful, feel free to leave a ⭐.
| 0088-merge-sorted-array |
| 0977-squares-of-a-sorted-array |
| 1679-max-number-of-k-sum-pairs |
| 0003-longest-substring-without-repeating-characters |
| 0643-maximum-average-subarray-i |
| 1456-maximum-number-of-vowels-in-a-substring-of-given-length |
| 0011-container-with-most-water |
| 0334-increasing-triplet-subsequence |
| 0605-can-place-flowers |
| 0204-count-primes |
| 0204-count-primes |
| 0682-baseball-game |
| 2011-final-value-of-variable-after-performing-operations |
| 3174-clear-digits |
| 3701-compute-alternating-sum |
| 0021-merge-two-sorted-lists |
| 0203-remove-linked-list-elements |
| 0206-reverse-linked-list |
| 0020-valid-parentheses |
| 0232-implement-queue-using-stacks |
| 0682-baseball-game |
| 2000-reverse-prefix-of-word |
| 3174-clear-digits |
| 1684-count-the-number-of-consistent-strings |
| 1684-count-the-number-of-consistent-strings |
| 3898-find-the-degree-of-each-vertex |
| 3898-find-the-degree-of-each-vertex |
| 0232-implement-queue-using-stacks |
| 0622-design-circular-queue |
| 0933-number-of-recent-calls |
| 0232-implement-queue-using-stacks |
| 0622-design-circular-queue |
| 0933-number-of-recent-calls |
| 0933-number-of-recent-calls |
| 0035-search-insert-position |
| 0278-first-bad-version |
| 0374-guess-number-higher-or-lower |
| 0704-binary-search |
| 0744-find-smallest-letter-greater-than-target |
| 0278-first-bad-version |
| 0374-guess-number-higher-or-lower |
| 1071-greatest-common-divisor-of-strings |
| 1071-greatest-common-divisor-of-strings |
| 0238-product-of-array-except-self |
| 0334-increasing-triplet-subsequence |
| 0392-is-subsequence |