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
Developer articles
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 }}
surajr
CodingInterview
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
CodingInterview
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
CodingInterview
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
.DS_Store
.DS_Store
3sum.java
3sum.java
BSTIterator.java
BSTIterator.java
BuddyStrings.java
BuddyStrings.java
CanPlaceFlowers.java
CanPlaceFlowers.java
CheckEqualTrees.java
CheckEqualTrees.java
Codec.java
Codec.java
ConstructMaximumBinaryTree.java
ConstructMaximumBinaryTree.java
CountSubstrings.java
CountSubstrings.java
FindMaxLength.java
FindMaxLength.java
FirstBadVersion.java
FirstBadVersion.java
FirstUniqChar.java
FirstUniqChar.java
MapSum.java
MapSum.java
MapSumii.java
MapSumii.java
MaximumProduct.java
MaximumProduct.java
MaximumProductSubArray.java
MaximumProductSubArray.java
MaximumSumSubArray.java
MaximumSumSubArray.java
MinStack.java
MinStack.java
MovingAverage.java
MovingAverage.java
MyStack.java
MyStack.java
PalindromePartition.java
PalindromePartition.java
PermuteCasewise.java
PermuteCasewise.java
QueueUsingStacks.java
QueueUsingStacks.java
TwoSum.java
TwoSum.java
UniquePaths.java
UniquePaths.java
ZigZag.java
ZigZag.java
addOneRow.java
addOneRow.java
addTwoNumbers.java
addTwoNumbers.java
addTwoNumbersLL.java
addTwoNumbersLL.java
anagramMappings.java
anagramMappings.java
arrayPairSum.java
arrayPairSum.java
averageOfLevels.java
averageOfLevels.java
bulbSwitch.java
bulbSwitch.java
canConstruct.java
canConstruct.java
canPermutePalindrome.java
canPermutePalindrome.java
canPlaceFlowers.java
canPlaceFlowers.java
checkInclusion.java
checkInclusion.java
checkRecord.java
checkRecord.java
climbStairs.java
climbStairs.java
combinationSum.java
combinationSum.java
combinationSumii.java
combinationSumii.java
compareVersion.java
compareVersion.java
complexNumberMultiply.java
complexNumberMultiply.java
computeArea.java
computeArea.java
containsDuplicate.java
containsDuplicate.java
containsNearbyAlmostDuplicate.java
containsNearbyAlmostDuplicate.java
containsNearbyDuplicate.java
containsNearbyDuplicate.java
convertToTitle.java
convertToTitle.java
countBattleships.java
countBattleships.java
countBits.java
countBits.java
countPrimes.java
countPrimes.java
deleteDuplicates.java
deleteDuplicates.java
deleteNode.java
deleteNode.java
depthSum.java
depthSum.java
detectCapitalUse.java
detectCapitalUse.java
diameterOfBinaryTree.java
diameterOfBinaryTree.java
findBottomLeftValue.java
findBottomLeftValue.java
findDuplicates.java
findDuplicates.java
findLHS.java
findLHS.java
findLUSlength.java
findLUSlength.java
findLengthOfLCIS.java
findLengthOfLCIS.java
findLongestChain.java
findLongestChain.java
findLongestWord.java
findLongestWord.java
findMaxAverage.java
findMaxAverage.java
findMaxConsecutiveOnes.java
findMaxConsecutiveOnes.java
findPairs.java
findPairs.java
findRelativeRanks.java
findRelativeRanks.java
findRepeatedDnaSequences.java
findRepeatedDnaSequences.java
findTarget.java
findTarget.java
findTheDifference.java
findTheDifference.java
findUnsortedSubarray.java
findUnsortedSubarray.java
findWords.java
findWords.java
fizzbuzz.java
fizzbuzz.java
fourSumCount.java
fourSumCount.java
generateParenthesis.java
generateParenthesis.java
generatePossibleNextMoves.java
generatePossibleNextMoves.java
getImportance.java
getImportance.java
getMinimumDifference.java
getMinimumDifference.java
grayCode.java
grayCode.java
hammingDistance.java
hammingDistance.java
hammingWeight.java
hammingWeight.java
inorderSuccessor.java
inorderSuccessor.java
inorderTraversal.java
inorderTraversal.java
insertInterval.java
insertInterval.java
insertionSortList.java
insertionSortList.java
intToRoman.java
intToRoman.java
intersect.java
intersect.java
intersection.java
intersection.java
isAnagram.java
isAnagram.java
isBalanced.java
isBalanced.java
isIsomorphic.java
isIsomorphic.java
isPalindrome.java
isPalindrome.java
isPalindromeList.java
isPalindromeList.java
isSubtree.java
isSubtree.java
isSymmetric.java
isSymmetric.java
isUnivalTree.java
isUnivalTree.java
isValid.java
isValid.java
largestNumber.java
largestNumber.java
largestPalindrome.java
largestPalindrome.java
leastInterval.java
leastInterval.java
View all files
You can’t perform that action at this time.