GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MukulParasar/leetcode-java-solutions: LeetCode solutions in Java showcasing consistent DSA practice with clean, efficient code for interview prep. For a structured and topic-wise view, please see the README.

BranchesTags
Open more actions menu

Latest commit

 

History

659 Commits
659 Commits

Folders and files

NameName
Last commit message
Last commit date
0001-two-sum
0001-two-sum
 
 
0003-longest-substring-without-repeating-characters
0003-longest-substring-without-repeating-characters
 
 
0004-median-of-two-sorted-arrays
0004-median-of-two-sorted-arrays
 
 
0007-reverse-integer
0007-reverse-integer
 
 
0009-palindrome-number
0009-palindrome-number
 
 
0013-roman-to-integer
0013-roman-to-integer
 
 
0026-remove-duplicates-from-sorted-array
0026-remove-duplicates-from-sorted-array
 
 
0027-remove-element
0027-remove-element
 
 
0028-find-the-index-of-the-first-occurrence-in-a-string
0028-find-the-index-of-the-first-occurrence-in-a-string
 
 
0033-search-in-rotated-sorted-array
0033-search-in-rotated-sorted-array
 
 
0034-find-first-and-last-position-of-element-in-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
 
 
0035-search-insert-position
0035-search-insert-position
 
 
0041-first-missing-positive
0041-first-missing-positive
 
 
0042-trapping-rain-water
0042-trapping-rain-water
 
 
0050-powx-n
0050-powx-n
 
 
0058-length-of-last-word
0058-length-of-last-word
 
 
0062-unique-paths
0062-unique-paths
 
 
0063-unique-paths-ii
0063-unique-paths-ii
 
 
0066-plus-one
0066-plus-one
 
 
0072-edit-distance
0072-edit-distance
 
 
0074-search-a-2d-matrix
0074-search-a-2d-matrix
 
 
0081-search-in-rotated-sorted-array-ii
0081-search-in-rotated-sorted-array-ii
 
 
0088-merge-sorted-array
0088-merge-sorted-array
 
 
0094-binary-tree-inorder-traversal
0094-binary-tree-inorder-traversal
 
 
0098-validate-binary-search-tree
0098-validate-binary-search-tree
 
 
0102-binary-tree-level-order-traversal
0102-binary-tree-level-order-traversal
 
 
0104-maximum-depth-of-binary-tree
0104-maximum-depth-of-binary-tree
 
 
0111-minimum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
 
 
0120-triangle
0120-triangle
 
 
0125-valid-palindrome
0125-valid-palindrome
 
 
0136-single-number
0136-single-number
 
 
0144-binary-tree-preorder-traversal
0144-binary-tree-preorder-traversal
 
 
0153-find-minimum-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
 
 
0154-find-minimum-in-rotated-sorted-array-ii
0154-find-minimum-in-rotated-sorted-array-ii
 
 
0162-find-peak-element
0162-find-peak-element
 
 
0191-number-of-1-bits
0191-number-of-1-bits
 
 
0198-house-robber
0198-house-robber
 
 
0207-course-schedule
0207-course-schedule
 
 
0208-implement-trie-prefix-tree
0208-implement-trie-prefix-tree
 
 
0210-course-schedule-ii
0210-course-schedule-ii
 
 
0231-power-of-two
0231-power-of-two
 
 
0240-search-a-2d-matrix-ii
0240-search-a-2d-matrix-ii
 
 
0268-missing-number
0268-missing-number
 
 
0278-first-bad-version
0278-first-bad-version
 
 
0287-find-the-duplicate-number
0287-find-the-duplicate-number
 
 
0303-range-sum-query-immutable
0303-range-sum-query-immutable
 
 
0326-power-of-three
0326-power-of-three
 
 
0342-power-of-four
0342-power-of-four
 
 
0344-reverse-string
0344-reverse-string
 
 
0349-intersection-of-two-arrays
0349-intersection-of-two-arrays
 
 
0374-guess-number-higher-or-lower
0374-guess-number-higher-or-lower
 
 
0410-split-array-largest-sum
0410-split-array-largest-sum
 
 
0441-arranging-coins
0441-arranging-coins
 
 
0442-find-all-duplicates-in-an-array
0442-find-all-duplicates-in-an-array
 
 
0448-find-all-numbers-disappeared-in-an-array
0448-find-all-numbers-disappeared-in-an-array
 
 
0450-delete-node-in-a-bst
0450-delete-node-in-a-bst
 
 
0509-fibonacci-number
0509-fibonacci-number
 
 
0547-number-of-provinces
0547-number-of-provinces
 
 
0566-reshape-the-matrix
0566-reshape-the-matrix
 
 
0628-maximum-product-of-three-numbers
0628-maximum-product-of-three-numbers
 
 
0645-set-mismatch
0645-set-mismatch
 
 
0700-search-in-a-binary-search-tree
0700-search-in-a-binary-search-tree
 
 
0701-insert-into-a-binary-search-tree
0701-insert-into-a-binary-search-tree
 
 
0704-binary-search
0704-binary-search
 
 
0709-to-lower-case
0709-to-lower-case
 
 
0720-longest-word-in-dictionary
0720-longest-word-in-dictionary
 
 
0744-find-smallest-letter-greater-than-target
0744-find-smallest-letter-greater-than-target
 
 
0832-flipping-an-image
0832-flipping-an-image
 
 
0875-koko-eating-bananas
0875-koko-eating-bananas
 
 
0905-sort-array-by-parity
0905-sort-array-by-parity
 
 
0994-rotting-oranges
0994-rotting-oranges
 
 
1011-capacity-to-ship-packages-within-d-days
1011-capacity-to-ship-packages-within-d-days
 
 
1108-defanging-an-ip-address
1108-defanging-an-ip-address
 
 
1143-longest-common-subsequence
1143-longest-common-subsequence
 
 
1260-shift-2d-grid
1260-shift-2d-grid
 
 
1342-number-of-steps-to-reduce-a-number-to-zero
1342-number-of-steps-to-reduce-a-number-to-zero
 
 
1346-check-if-n-and-its-double-exist
1346-check-if-n-and-its-double-exist
 
 
1351-count-negative-numbers-in-a-sorted-matrix
1351-count-negative-numbers-in-a-sorted-matrix
 
 
1386-cinema-seat-allocation
1386-cinema-seat-allocation
 
 
1464-maximum-product-of-two-elements-in-an-array
1464-maximum-product-of-two-elements-in-an-array
 
 
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
 
 
1528-shuffle-string
1528-shuffle-string
 
 
1561-maximum-number-of-coins-you-can-get
1561-maximum-number-of-coins-you-can-get
 
 
1662-check-if-two-string-arrays-are-equivalent
1662-check-if-two-string-arrays-are-equivalent
 
 
1672-richest-customer-wealth
1672-richest-customer-wealth
 
 
1678-goal-parser-interpretation
1678-goal-parser-interpretation
 
 
1704-determine-if-string-halves-are-alike
1704-determine-if-string-halves-are-alike
 
 
1773-count-items-matching-a-rule
1773-count-items-matching-a-rule
 
 
1816-truncate-sentence
1816-truncate-sentence
 
 
1823-find-the-winner-of-the-circular-game
1823-find-the-winner-of-the-circular-game
 
 
1833-maximum-ice-cream-bars
1833-maximum-ice-cream-bars
 
 
1838-frequency-of-the-most-frequent-element
1838-frequency-of-the-most-frequent-element
 
 
1859-sorting-the-sentence
1859-sorting-the-sentence
 
 
3069-distribute-elements-into-two-arrays-i
3069-distribute-elements-into-two-arrays-i
 
 
3116-kth-smallest-amount-with-single-denomination-combination
3116-kth-smallest-amount-with-single-denomination-combination
 
 
3536-maximum-product-of-two-digits
3536-maximum-product-of-two-digits
 
 
3622-check-divisibility-by-digit-sum-and-product
3622-check-divisibility-by-digit-sum-and-product
 
 
3658-gcd-of-odd-and-even-sums
3658-gcd-of-odd-and-even-sums
 
 
3718-smallest-missing-multiple-of-k
3718-smallest-missing-multiple-of-k
 
 
3898-find-the-degree-of-each-vertex
3898-find-the-degree-of-each-vertex
 
 

Repository files navigation

🚀 LeetCode Java Solutions

This repository contains my solutions to LeetCode problems implemented in Java.

I consistently practice Data Structures and Algorithms to improve problem-solving skills and prepare for technical interviews.


📌 Highlights

  • 💻 Language: Java
  • 📈 Daily DSA Practice
  • 🧠 Focus on clean and optimized solutions
  • 📂 Organized by topics

📊 Progress

  • ⭐ Problems Solved: 100+
  • 🔥 Current Focus: DSA in Java

🎯 Goal

To build strong problem-solving skills and crack top tech internships.


🔗 LeetCode Profile

https://leetcode.com/u/mukul_parashar/


⭐ If you find this helpful, feel free to star the repo!

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0041-first-missing-positive
0042-trapping-rain-water
0063-unique-paths-ii
0066-plus-one
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0120-triangle
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0198-house-robber
0240-search-a-2d-matrix-ii
0268-missing-number
0287-find-the-duplicate-number
0303-range-sum-query-immutable
0349-intersection-of-two-arrays
0410-split-array-largest-sum
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0566-reshape-the-matrix
0628-maximum-product-of-three-numbers
0645-set-mismatch
0704-binary-search
0720-longest-word-in-dictionary
0744-find-smallest-letter-greater-than-target
0832-flipping-an-image
0875-koko-eating-bananas
0905-sort-array-by-parity
0994-rotting-oranges
1011-capacity-to-ship-packages-within-d-days
1260-shift-2d-grid
1346-check-if-n-and-its-double-exist
1351-count-negative-numbers-in-a-sorted-matrix
1386-cinema-seat-allocation
1464-maximum-product-of-two-elements-in-an-array
1480-running-sum-of-1d-array
1528-shuffle-string
1561-maximum-number-of-coins-you-can-get
1662-check-if-two-string-arrays-are-equivalent
1672-richest-customer-wealth
1773-count-items-matching-a-rule
1816-truncate-sentence
1823-find-the-winner-of-the-circular-game
1833-maximum-ice-cream-bars
1838-frequency-of-the-most-frequent-element
3069-distribute-elements-into-two-arrays-i
3116-kth-smallest-amount-with-single-denomination-combination
3718-smallest-missing-multiple-of-k

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0240-search-a-2d-matrix-ii
0268-missing-number
0278-first-bad-version
0287-find-the-duplicate-number
0349-intersection-of-two-arrays
0374-guess-number-higher-or-lower
0410-split-array-largest-sum
0441-arranging-coins
0704-binary-search
0744-find-smallest-letter-greater-than-target
0875-koko-eating-bananas
1011-capacity-to-ship-packages-within-d-days
1346-check-if-n-and-its-double-exist
1351-count-negative-numbers-in-a-sorted-matrix
1838-frequency-of-the-most-frequent-element
3116-kth-smallest-amount-with-single-denomination-combination

Dynamic Programming

0042-trapping-rain-water
0062-unique-paths
0063-unique-paths-ii
0072-edit-distance
0120-triangle
0198-house-robber
0410-split-array-largest-sum
0509-fibonacci-number
1143-longest-common-subsequence

Greedy

0410-split-array-largest-sum
1386-cinema-seat-allocation
1561-maximum-number-of-coins-you-can-get
1833-maximum-ice-cream-bars
1838-frequency-of-the-most-frequent-element

Prefix Sum

0303-range-sum-query-immutable
0410-split-array-largest-sum
1480-running-sum-of-1d-array
1838-frequency-of-the-most-frequent-element

Interactive

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

Math

0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0050-powx-n
0062-unique-paths
0066-plus-one
0231-power-of-two
0268-missing-number
0326-power-of-three
0342-power-of-four
0441-arranging-coins
0509-fibonacci-number
0628-maximum-product-of-three-numbers
1342-number-of-steps-to-reduce-a-number-to-zero
1561-maximum-number-of-coins-you-can-get
1823-find-the-winner-of-the-circular-game
3116-kth-smallest-amount-with-single-denomination-combination
3536-maximum-product-of-two-digits
3622-check-divisibility-by-digit-sum-and-product
3658-gcd-of-odd-and-even-sums

Matrix

0063-unique-paths-ii
0074-search-a-2d-matrix
0240-search-a-2d-matrix-ii
0566-reshape-the-matrix
0832-flipping-an-image
0994-rotting-oranges
1260-shift-2d-grid
1351-count-negative-numbers-in-a-sorted-matrix
1672-richest-customer-wealth

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0125-valid-palindrome
0287-find-the-duplicate-number
0344-reverse-string
0349-intersection-of-two-arrays
0832-flipping-an-image
0905-sort-array-by-parity
1346-check-if-n-and-its-double-exist

Stack

0042-trapping-rain-water
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal

Monotonic Stack

0042-trapping-rain-water

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0072-edit-distance
0125-valid-palindrome
0208-implement-trie-prefix-tree
0344-reverse-string
0709-to-lower-case
0720-longest-word-in-dictionary
1108-defanging-an-ip-address
1143-longest-common-subsequence
1528-shuffle-string
1662-check-if-two-string-arrays-are-equivalent
1678-goal-parser-interpretation
1704-determine-if-string-halves-are-alike
1773-count-items-matching-a-rule
1816-truncate-sentence
1859-sorting-the-sentence

Recursion

0050-powx-n
0231-power-of-two
0326-power-of-three
0342-power-of-four
0509-fibonacci-number
1823-find-the-winner-of-the-circular-game

Queue

1823-find-the-winner-of-the-circular-game

Simulation

0566-reshape-the-matrix
0832-flipping-an-image
1260-shift-2d-grid
1823-find-the-winner-of-the-circular-game
3069-distribute-elements-into-two-arrays-i

Sorting

0268-missing-number
0349-intersection-of-two-arrays
0442-find-all-duplicates-in-an-array
0628-maximum-product-of-three-numbers
0645-set-mismatch
0720-longest-word-in-dictionary
0905-sort-array-by-parity
1346-check-if-n-and-its-double-exist
1464-maximum-product-of-two-elements-in-an-array
1561-maximum-number-of-coins-you-can-get
1833-maximum-ice-cream-bars
1838-frequency-of-the-most-frequent-element
1859-sorting-the-sentence
3536-maximum-product-of-two-digits

Counting Sort

1704-determine-if-string-halves-are-alike
1833-maximum-ice-cream-bars

Game Theory

1561-maximum-number-of-coins-you-can-get

Divide and Conquer

0004-median-of-two-sorted-arrays
0191-number-of-1-bits
0240-search-a-2d-matrix-ii

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0041-first-missing-positive
0208-implement-trie-prefix-tree
0268-missing-number
0349-intersection-of-two-arrays
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0645-set-mismatch
0720-longest-word-in-dictionary
1346-check-if-n-and-its-double-exist
1386-cinema-seat-allocation
3718-smallest-missing-multiple-of-k

Bit Manipulation

0136-single-number
0191-number-of-1-bits
0231-power-of-two
0268-missing-number
0287-find-the-duplicate-number
0342-power-of-four
0645-set-mismatch
0832-flipping-an-image
1342-number-of-steps-to-reduce-a-number-to-zero
1386-cinema-seat-allocation
3116-kth-smallest-amount-with-single-denomination-combination

Sliding Window

0003-longest-substring-without-repeating-characters
1838-frequency-of-the-most-frequent-element

Memoization

0509-fibonacci-number

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0450-delete-node-in-a-bst
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0207-course-schedule
0210-course-schedule-ii
0547-number-of-provinces

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0144-binary-tree-preorder-traversal
0450-delete-node-in-a-bst
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree

Breadth-First Search

0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0207-course-schedule
0210-course-schedule-ii
0547-number-of-provinces
0994-rotting-oranges

Binary Search Tree

0098-validate-binary-search-tree
0450-delete-node-in-a-bst
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree

Union-Find

0547-number-of-provinces

Graph Theory

0207-course-schedule
0210-course-schedule-ii
0547-number-of-provinces

Topological Sort

0207-course-schedule
0210-course-schedule-ii

Combinatorics

0062-unique-paths
3116-kth-smallest-amount-with-single-denomination-combination

Design

0208-implement-trie-prefix-tree
0303-range-sum-query-immutable

Trie

0208-implement-trie-prefix-tree
0720-longest-word-in-dictionary

Number Theory

3116-kth-smallest-amount-with-single-denomination-combination
3658-gcd-of-odd-and-even-sums

Heap (Priority Queue)

1464-maximum-product-of-two-elements-in-an-array

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Z Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

Knuth–Morris–Pratt Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

Boyer–Moore String-Search Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

About

LeetCode solutions in Java showcasing consistent DSA practice with clean, efficient code for interview prep. For a structured and topic-wise view, please see the README.

leetcode.com/u/mukul_parashar/

Topics

algorithmscoding-interviewcompetitive-programmingdata-structuresdsagithub-portfoliojavajava-solutionsleetcodepreparationproblem-solving

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.