Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
nikoo28
java-solutions
Repository navigation
Code
Issues
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
java-solutions
/
src
/
main
/
java
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
java-solutions
/
src
/
main
/
java
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
easy
easy
hard
hard
medium
medium
AddDigits.java
AddDigits.java
AddTwoNumbers.java
AddTwoNumbers.java
AlmostPalindromes.java
AlmostPalindromes.java
ArrayNesting.java
ArrayNesting.java
ArrayPartition1.java
ArrayPartition1.java
AsciiDistance.java
AsciiDistance.java
AssignCookies.java
AssignCookies.java
AverageOfLevelsInBinaryTree.java
AverageOfLevelsInBinaryTree.java
BaseballGame.java
BaseballGame.java
BinaryNumberWithAlternatingBits.java
BinaryNumberWithAlternatingBits.java
BinaryTreeInOrderTraversal.java
BinaryTreeInOrderTraversal.java
BinaryTreeRightSIdeView.java
BinaryTreeRightSIdeView.java
Brackets.java
Brackets.java
ConstructRectangle.java
ConstructRectangle.java
ConstructStringFromBinaryTree.java
ConstructStringFromBinaryTree.java
ConvertSortedArrayToBinarySearchTree.java
ConvertSortedArrayToBinarySearchTree.java
CopyListWithRandomPointer.java
CopyListWithRandomPointer.java
CountBinaryStrings.java
CountBinaryStrings.java
DetectCapital.java
DetectCapital.java
DiameterOfBinaryTree.java
DiameterOfBinaryTree.java
DistributeCandies.java
DistributeCandies.java
DoubleListNode.java
DoubleListNode.java
EmployeeImportance.java
EmployeeImportance.java
EncodeDecodeTinyUrl.java
EncodeDecodeTinyUrl.java
ExcelSheetColumnNumber.java
ExcelSheetColumnNumber.java
FinKthLargest.java
FinKthLargest.java
FindAllNumbersDisappearedInArray.java
FindAllNumbersDisappearedInArray.java
FindAnagramMappings.java
FindAnagramMappings.java
FindComplement.java
FindComplement.java
FindTheDifference.java
FindTheDifference.java
FirstUniqueCharacterInString.java
FirstUniqueCharacterInString.java
FizzBuzz.java
FizzBuzz.java
FloodFill.java
FloodFill.java
FourLetterWords.java
FourLetterWords.java
HammingDistance.java
HammingDistance.java
IntersectionOfTwoArrays.java
IntersectionOfTwoArrays.java
InvertBinaryTree.java
InvertBinaryTree.java
IslandPerimeter.java
IslandPerimeter.java
JewelsAndStones.java
JewelsAndStones.java
JudgeRouteCircle.java
JudgeRouteCircle.java
KeyboardRow.java
KeyboardRow.java
LeafSimilar.java
LeafSimilar.java
LengthOfLongestPalindrome.java
LengthOfLongestPalindrome.java
LetterCombinations.java
LetterCombinations.java
LoggerRateLimiter.java
LoggerRateLimiter.java
LongestUncommonSubsequence1.java
LongestUncommonSubsequence1.java
MaxAreaOfIsland.java
MaxAreaOfIsland.java
MaxConsecutiveOnes.java
MaxConsecutiveOnes.java
MaximumSumTwoNonOverlappingSubarrays.java
MaximumSumTwoNonOverlappingSubarrays.java
MergeTwoSortedLists.java
MergeTwoSortedLists.java
MinStack.java
MinStack.java
MinimumMovesToEqualArrayElements.java
MinimumMovesToEqualArrayElements.java
MissingNumber.java
MissingNumber.java
MovingAverage.java
MovingAverage.java
NextGreaterElement1.java
NextGreaterElement1.java
NimGame.java
NimGame.java
NotBoring.sql
NotBoring.sql
NumberComplement.java
NumberComplement.java
NumberOfEquivalentDominoes.java
NumberOfEquivalentDominoes.java
NumberOfIslands.java
NumberOfIslands.java
NumberOfLinesToWriteString.java
NumberOfLinesToWriteString.java
PeakIndexInAMountainArray.java
PeakIndexInAMountainArray.java
RandomizedSet.java
RandomizedSet.java
RangeAddition2.java
RangeAddition2.java
RansomeNote.java
RansomeNote.java
ReshapeTheMatrix.java
ReshapeTheMatrix.java
ReverseLinkedList.java
ReverseLinkedList.java
ReverseString.java
ReverseString.java
RomanToInteger.java
RomanToInteger.java
SmallestLetterGreaterThanTarget.java
SmallestLetterGreaterThanTarget.java
StringCompression.java
StringCompression.java
StringToInteger.java
StringToInteger.java
SumOfLeftLeaves.java
SumOfLeftLeaves.java
ThreeSum.java
ThreeSum.java
ToeplitzMatrix.java
ToeplitzMatrix.java
TrimABinarySearchTree.java
TrimABinarySearchTree.java
TwoSumIV.java
TwoSumIV.java
UnionFind.java
UnionFind.java
UniqueMorseCodeWords.java
UniqueMorseCodeWords.java
WordBreak.java
WordBreak.java
WordLadder.java
WordLadder.java
WordLadderII.java
WordLadderII.java
ZombieClusters.java
ZombieClusters.java
View all files
You can’t perform that action at this time.