Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
fartem
/
leetcode-java
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
5
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
leetcode-java
/
src
/
main
/
java
/
com
/
smlnskgmail
/
jaman
/
leetcodejava
/
easy
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode-java
/
src
/
main
/
java
/
com
/
smlnskgmail
/
jaman
/
leetcodejava
/
easy
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
ANumberAfterADoubleReversal.java
ANumberAfterADoubleReversal.java
AddBinary.java
AddBinary.java
AddDigits.java
AddDigits.java
AddStrings.java
AddStrings.java
AddToArrayFormOfInteger.java
AddToArrayFormOfInteger.java
AddTwoIntegers.java
AddTwoIntegers.java
AlternatingDigitSum.java
AlternatingDigitSum.java
ApplyOperationsToAnArray.java
ApplyOperationsToAnArray.java
ArrangingCoins.java
ArrangingCoins.java
ArrayPartition.java
ArrayPartition.java
AssignCookies.java
AssignCookies.java
AverageOfLevelsInBinaryTree.java
AverageOfLevelsInBinaryTree.java
AverageSalaryExcludingTheMinimumAndMaximumSalary.java
AverageSalaryExcludingTheMinimumAndMaximumSalary.java
AverageValueOfEvenNumbersThatAreDivisibleByThree.java
AverageValueOfEvenNumbersThatAreDivisibleByThree.java
BackspaceStringCompare.java
BackspaceStringCompare.java
BalancedBinaryTree.java
BalancedBinaryTree.java
Base7.java
Base7.java
BaseballGame.java
BaseballGame.java
BestPokerHand.java
BestPokerHand.java
BestTimeToBuyAndSellStock.java
BestTimeToBuyAndSellStock.java
BinaryGap.java
BinaryGap.java
BinaryNumberWithAlternatingBits.java
BinaryNumberWithAlternatingBits.java
BinaryPrefixDivisibleBy5.java
BinaryPrefixDivisibleBy5.java
BinarySearch.java
BinarySearch.java
BinaryTreeInorderTraversal.java
BinaryTreeInorderTraversal.java
BinaryTreePaths.java
BinaryTreePaths.java
BinaryTreePostorderTraversal.java
BinaryTreePostorderTraversal.java
BinaryTreePreorderTraversal.java
BinaryTreePreorderTraversal.java
BinaryTreeTilt.java
BinaryTreeTilt.java
BuddyStrings.java
BuddyStrings.java
BuildArrayFromPermutation.java
BuildArrayFromPermutation.java
CalculateAmountPaidInTaxes.java
CalculateAmountPaidInTaxes.java
CalculateDigitSumOfAString.java
CalculateDigitSumOfAString.java
CalculateMoneyInLeetcodeBank.java
CalculateMoneyInLeetcodeBank.java
CanMakeArithmeticProgressionFromSequence.java
CanMakeArithmeticProgressionFromSequence.java
CapitalizeTheTitle.java
CapitalizeTheTitle.java
CategorizeBoxAccordingToCriteria.java
CategorizeBoxAccordingToCriteria.java
CellsInARangeOnAnExcelSheet.java
CellsInARangeOnAnExcelSheet.java
CellsWithOddValuesInAMatrix.java
CellsWithOddValuesInAMatrix.java
CheckDistancesBetweenSameLetters.java
CheckDistancesBetweenSameLetters.java
CheckIfAWordOccursAsAPrefixOfAnyWordInASentence.java
CheckIfAWordOccursAsAPrefixOfAnyWordInASentence.java
CheckIfAll1sAreAtLeastLengthKPlacesAway.java
CheckIfAll1sAreAtLeastLengthKPlacesAway.java
CheckIfAllAsAppearsBeforeAllBs.java
CheckIfAllAsAppearsBeforeAllBs.java
CheckIfAllCharactersHaveEqualNumberOfOccurrences.java
CheckIfAllCharactersHaveEqualNumberOfOccurrences.java
CheckIfAllTheIntegersInARangeAreCovered.java
CheckIfAllTheIntegersInARangeAreCovered.java
CheckIfArrayIsSortedAndRotated.java
CheckIfArrayIsSortedAndRotated.java
CheckIfBinaryStringHasAtMostOneSegmentOfOnes.java
CheckIfBinaryStringHasAtMostOneSegmentOfOnes.java
CheckIfEveryRowAndColumnContainsAllNumbers.java
CheckIfEveryRowAndColumnContainsAllNumbers.java
CheckIfItIsAStraightLine.java
CheckIfItIsAStraightLine.java
CheckIfMatrixIsXMatrix.java
CheckIfMatrixIsXMatrix.java
CheckIfNAndItsDoubleExist.java
CheckIfNAndItsDoubleExist.java
CheckIfNumberHasEqualDigitCountAndDigitValue.java
CheckIfNumberHasEqualDigitCountAndDigitValue.java
CheckIfNumbersAreAscendingInASentence.java
CheckIfNumbersAreAscendingInASentence.java
CheckIfOneStringSwapCanMakeStringsEqual.java
CheckIfOneStringSwapCanMakeStringsEqual.java
CheckIfStringIsAPrefixOfArray.java
CheckIfStringIsAPrefixOfArray.java
CheckIfTheSentenceIsPangram.java
CheckIfTheSentenceIsPangram.java
CheckIfTwoStringArraysAreEquivalent.java
CheckIfTwoStringArraysAreEquivalent.java
CheckIfWordEqualsSummationOfTwoWords.java
CheckIfWordEqualsSummationOfTwoWords.java
CheckWhetherTwoStringsAreAlmostEquivalent.java
CheckWhetherTwoStringsAreAlmostEquivalent.java
CircularSentence.java
CircularSentence.java
ClimbingStairs.java
ClimbingStairs.java
ComplementOfBase10Integer.java
ComplementOfBase10Integer.java
ConcatenationOfArray.java
ConcatenationOfArray.java
ConsecutiveCharacters.java
ConsecutiveCharacters.java
ConstructStringFromBinaryTree.java
ConstructStringFromBinaryTree.java
ConstructTheRectangle.java
ConstructTheRectangle.java
ContainsDuplicate.java
ContainsDuplicate.java
ContainsDuplicateII.java
ContainsDuplicateII.java
Convert1DArrayInto2DArray.java
Convert1DArrayInto2DArray.java
ConvertANumberToHexadecimal.java
ConvertANumberToHexadecimal.java
ConvertBinaryNumberInALinkedListToInteger.java
ConvertBinaryNumberInALinkedListToInteger.java
ConvertIntegerToTheSumOfTwoNoZeroIntegers.java
ConvertIntegerToTheSumOfTwoNoZeroIntegers.java
ConvertSortedArrayToBinarySearchTree.java
ConvertSortedArrayToBinarySearchTree.java
ConvertTheTemperature.java
ConvertTheTemperature.java
CountAsterisks.java
CountAsterisks.java
CountCommonWordsWithOneOccurrence.java
CountCommonWordsWithOneOccurrence.java
CountDistinctNumbersOnBoard.java
CountDistinctNumbersOnBoard.java
CountElementsWithStrictlySmallerAndGreaterElements.java
CountElementsWithStrictlySmallerAndGreaterElements.java
CountEqualAndDivisiblePairsInAnArray.java
CountEqualAndDivisiblePairsInAnArray.java
CountGoodTriplets.java
CountGoodTriplets.java
CountHillsAndValleysInAnArray.java
CountHillsAndValleysInAnArray.java
CountIntegersWithEvenDigitSum.java
CountIntegersWithEvenDigitSum.java
CountItemsMatchingARule.java
CountItemsMatchingARule.java
CountLargestGroup.java
CountLargestGroup.java
CountNegativeNumbersInASortedMatrix.java
CountNegativeNumbersInASortedMatrix.java
CountNumberOfPairsWithAbsoluteDifferenceK.java
CountNumberOfPairsWithAbsoluteDifferenceK.java
CountOddNumbersInAnIntervalRange.java
CountOddNumbersInAnIntervalRange.java
CountOfMatchesInTournament.java
CountOfMatchesInTournament.java
CountOperationsToObtainZero.java
CountOperationsToObtainZero.java
CountPairsOfSimilarStrings.java
CountPairsOfSimilarStrings.java
CountPrefixesOfAGivenString.java
CountPrefixesOfAGivenString.java
CountSpecialQuadruplets.java
CountSpecialQuadruplets.java
CountSquareSumTriples.java
CountSquareSumTriples.java
CountTheDigitsThatDivideANumber.java
CountTheDigitsThatDivideANumber.java
CountTheNumberOfConsistentStrings.java
CountTheNumberOfConsistentStrings.java
CountVowelSubstringsOfAString.java
CountVowelSubstringsOfAString.java
CountingBits.java
CountingBits.java
CountingWordsWithAGivenPrefix.java
CountingWordsWithAGivenPrefix.java
CousinsInBinaryTree.java
CousinsInBinaryTree.java
CrawlerLogFolder.java
CrawlerLogFolder.java
View all files
You can’t perform that action at this time.