Skip to content

My Java solutions to LeetCode problems with clean logic and structured code. Currently solving DSA consistently.

Notifications You must be signed in to change notification settings

Nischay-Codes/LeetCode-Solutions-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Solutions-Java

This repository contains my personal Java solutions to LeetCode problems.
I'm solving DSA consistently and using this repo to organize my logic cleanly and track my progress.


Problems Solved So Far

Easy

# Title Java File
1 Two Sum P1_TwoSum.java
2 Missing Number P268_MissingNumber.java
3 Running Sum of 1D Array P1480_RunningSum1D.java
4 Richest Customer Wealth P1672_MaxWealth2D.java
5 FizzBuzz P412_FizzBuzz.java
6 Reduce Number to Zero P1342_ReduceToZero.java
7 Valid Anagram P242_ValidAnagram.java
8 Ransom Note P383_RansomNote.java

Medium

# Title Java File
1 Group Anagrams P49_GroupAnagrams.java
2 Top K Frequent Elements P347_TopKFrequent.java
3 Find All Anagrams in a String P438_FindAllAnagrams.java
4 Longest Substring Without Repeating Characters P3_LongestSubStringWithoutRepeat.java
5 Remove Duplicates from Sorted Array II P80_RemoveDuplicateII.java

Brute-Force Practice (Easy)

Note: This is where I focus on pure logic building first — not optimization.

Title Java File
Two Sum P1_TwoSum.java
Search Insert Position P35_SearchInsertPosition.java
Find the Difference P389_FindTheDifference.java
Maximum Profit P121_MaxiumProfit.java
Contains Duplicate P217_ContainsDuplicate.java
Single Number P136_SingleNumber.java
Pascal’s Triangle P118_PascalsTriangle.java
Maximum Number of Balloons P1189_MaximumNumberBalloons.java
Find Numbers with Even Digits P1295_FindNumbersWithEvenNumberDigits.java
Numbers Smaller Than Current Number P1365_NumbersSmallerThanCurrentNumber.java
Create Target Array P1389_CreateTargetArray.java
Highest Candies P1431_HighestCandies.java
Destination City P1436_DestinationCity.java
Check if All 1s at K Distance P1437_CheckIfAll1LeastLengthKPlacesAway.java
Students Doing Homework P1450_NumberOfStudentsDoingHomework.java
Shuffle the Array P1470_ShuffletheArray.java
Running Sum of 1D Array P1480_RunningSum1DArray.java
Majority Element P169_majorityElement.java
Max Product of Three Numbers P628_MaxProductOfThree.java
To Lower Case P709_ToLowerCaseExample.java

Tools I Use

  • Java (IntelliJ IDEA)
  • GitHub
  • LeetCode (Daily Practice)

Goals

  • Solve 100+ LeetCode problems
  • Write clean, optimized code
  • Grow DSA + backend skills consistently

About

My Java solutions to LeetCode problems with clean logic and structured code. Currently solving DSA consistently.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages