Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

252 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Java DSA Solutions

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.


📚 What's Inside?

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.


🎯 Objectives

  • 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

🛠️ Tech Stack

  • Java

📂 Repository Structure

Repository/
│
├── README.md
├── Solution.java
└── Additional files (if required)

Each solution directory contains:

  • README.md — Explanation, approach, dry run, and complexity analysis
  • Solution.java — Java implementation

📈 Learning Journey

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.


⭐ Support

If you find this repository useful, feel free to leave a ⭐.

LeetCode Topics

Array

0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0035-search-insert-position
0066-plus-one
0088-merge-sorted-array
0204-count-primes
0238-product-of-array-except-self
0334-increasing-triplet-subsequence
0605-can-place-flowers
0622-design-circular-queue
0643-maximum-average-subarray-i
0682-baseball-game
0704-binary-search
0744-find-smallest-letter-greater-than-target
0977-squares-of-a-sorted-array
1431-kids-with-the-greatest-number-of-candies
1436-destination-city
1679-max-number-of-k-sum-pairs
1684-count-the-number-of-consistent-strings
2011-final-value-of-variable-after-performing-operations
3190-find-minimum-operations-to-make-all-elements-divisible-by-three
3701-compute-alternating-sum
3898-find-the-degree-of-each-vertex

Two Pointers

0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0088-merge-sorted-array
0141-linked-list-cycle
0142-linked-list-cycle-ii
0151-reverse-words-in-a-string
0345-reverse-vowels-of-a-string
0392-is-subsequence
0443-string-compression
0876-middle-of-the-linked-list
0977-squares-of-a-sorted-array
1679-max-number-of-k-sum-pairs
1768-merge-strings-alternately
2000-reverse-prefix-of-word

Sorting

0088-merge-sorted-array
0977-squares-of-a-sorted-array
1679-max-number-of-k-sum-pairs

Sliding Window

0003-longest-substring-without-repeating-characters
0643-maximum-average-subarray-i
1456-maximum-number-of-vowels-in-a-substring-of-given-length

Greedy

0011-container-with-most-water
0334-increasing-triplet-subsequence
0605-can-place-flowers

Math

0013-roman-to-integer
0066-plus-one
0204-count-primes
1071-greatest-common-divisor-of-strings
1290-convert-binary-number-in-a-linked-list-to-integer
2235-add-two-integers
3190-find-minimum-operations-to-make-all-elements-divisible-by-three

Enumeration

0204-count-primes

Number Theory

0204-count-primes

Hash Table

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0771-jewels-and-stones
1436-destination-city
1679-max-number-of-k-sum-pairs
1684-count-the-number-of-consistent-strings

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0020-valid-parentheses
0151-reverse-words-in-a-string
0345-reverse-vowels-of-a-string
0392-is-subsequence
0443-string-compression
0771-jewels-and-stones
1071-greatest-common-divisor-of-strings
1436-destination-city
1456-maximum-number-of-vowels-in-a-substring-of-given-length
1684-count-the-number-of-consistent-strings
1768-merge-strings-alternately
2000-reverse-prefix-of-word
2011-final-value-of-variable-after-performing-operations
3110-score-of-a-string
3174-clear-digits

Simulation

0682-baseball-game
2011-final-value-of-variable-after-performing-operations
3174-clear-digits
3701-compute-alternating-sum

Linked List

0021-merge-two-sorted-lists
0083-remove-duplicates-from-sorted-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0203-remove-linked-list-elements
0206-reverse-linked-list
0622-design-circular-queue
0876-middle-of-the-linked-list
1290-convert-binary-number-in-a-linked-list-to-integer

Recursion

0021-merge-two-sorted-lists
0203-remove-linked-list-elements
0206-reverse-linked-list

Stack

0020-valid-parentheses
0232-implement-queue-using-stacks
0682-baseball-game
2000-reverse-prefix-of-word
3174-clear-digits

Bit Manipulation

1684-count-the-number-of-consistent-strings

Counting

1684-count-the-number-of-consistent-strings

Graph Theory

3898-find-the-degree-of-each-vertex

Matrix

3898-find-the-degree-of-each-vertex

Design

0232-implement-queue-using-stacks
0622-design-circular-queue
0933-number-of-recent-calls

Queue

0232-implement-queue-using-stacks
0622-design-circular-queue
0933-number-of-recent-calls

Data Stream

0933-number-of-recent-calls

Binary Search

0035-search-insert-position
0278-first-bad-version
0374-guess-number-higher-or-lower
0704-binary-search
0744-find-smallest-letter-greater-than-target

Interactive

0278-first-bad-version
0374-guess-number-higher-or-lower

Euclidean Algorithm

1071-greatest-common-divisor-of-strings

Greatest Common Divisor

1071-greatest-common-divisor-of-strings

Prefix Sum

0238-product-of-array-except-self

Longest Increasing Subsequence

0334-increasing-triplet-subsequence

Dynamic Programming

0392-is-subsequence

About

Daily LeetCode solutions in Java with beginner-friendly explanations, intuition, dry runs, complexity analysis, and clean implementations for DSA and interview preparation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages