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 }}
niraj-khatiwada
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
My LeetCode journey
leetcode.com/u/codeforreal/
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
153 Commits
153 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.vscode
.vscode
AllOOneDataStructure432
AllOOneDataStructure432
AllPathsFromSourceToTarget797
AllPathsFromSourceToTarget797
BalancedBinaryTree110
BalancedBinaryTree110
BestTimeToBuyAndSellStock121
BestTimeToBuyAndSellStock121
BinarySearch704
BinarySearch704
BinaryTreeLevelOrderTraversal102
BinaryTreeLevelOrderTraversal102
BinaryTreeMaximumPathSum124
BinaryTreeMaximumPathSum124
BinaryTreeRightSideView199
BinaryTreeRightSideView199
CheapestFlightsWithKStops787
CheapestFlightsWithKStops787
CheckIfArrayPairsAreDivisibleByK1497
CheckIfArrayPairsAreDivisibleByK1497
ClimbingStairs70
ClimbingStairs70
CloneGraph133
CloneGraph133
CoinChange322
CoinChange322
CombinationTargetSum39
CombinationTargetSum39
ConstrutcBTFromPreOrderAndInOrderTraversal105
ConstrutcBTFromPreOrderAndInOrderTraversal105
ContainerWithMostWater11
ContainerWithMostWater11
ContainsDuplicate217
ContainsDuplicate217
Convert1DArrayTo2DArray2022
Convert1DArrayTo2DArray2022
ConvertSortedListToBST109
ConvertSortedListToBST109
CountGoodNodesInABinaryTree1448
CountGoodNodesInABinaryTree1448
CountNumberOfIslands200
CountNumberOfIslands200
CountSquaresSubmatricesWithAllOnes1277
CountSquaresSubmatricesWithAllOnes1277
CountTheNumberOfConsistentStrings1684
CountTheNumberOfConsistentStrings1684
CountingBits338
CountingBits338
CourseSchedule207
CourseSchedule207
CourseScheduleII210
CourseScheduleII210
DefuseTheBomb1652
DefuseTheBomb1652
DesignAStackWithIncrementOperation1381
DesignAStackWithIncrementOperation1381
DesignAddAndSearchDataStructures211
DesignAddAndSearchDataStructures211
DesignCircularDeque641
DesignCircularDeque641
DesignTwitter355
DesignTwitter355
DiameterOfABinaryTree543
DiameterOfABinaryTree543
DifferentWaysToAddParentheses241
DifferentWaysToAddParentheses241
EncodeAndDecodeString1980
EncodeAndDecodeString1980
FindMedianFromDataStream295
FindMedianFromDataStream295
FindMissingObservations2028
FindMissingObservations2028
FindSingleNumber136
FindSingleNumber136
FindTheLengthOfTheLongestCommonPrefix3043
FindTheLengthOfTheLongestCommonPrefix3043
FindTheLongestSubstringContainingVowelsInEvenCounts1371
FindTheLongestSubstringContainingVowelsInEvenCounts1371
FindTheStudentThatWillReplaceTheChalk1894
FindTheStudentThatWillReplaceTheChalk1894
FloodFill733
FloodFill733
GroupAnagrams49
GroupAnagrams49
HammingWeight191
HammingWeight191
HappyNumber202
HappyNumber202
HouseRobber198
HouseRobber198
ImplementPrefixTrie208
ImplementPrefixTrie208
InsertGreatestCommonDivisorsInLinkedList2807
InsertGreatestCommonDivisorsInLinkedList2807
InvertABinaryTree226
InvertABinaryTree226
IsGraphBipartite785
IsGraphBipartite785
IsSameTree100
IsSameTree100
IslandsAndTreasures
IslandsAndTreasures
KClosestPointsToOrigin973
KClosestPointsToOrigin973
KthLargestElement215
KthLargestElement215
KthSmallestElementInABinaryTree
KthSmallestElementInABinaryTree
KthSmallestInLexicographicalOrder440
KthSmallestInLexicographicalOrder440
LargestNumber179
LargestNumber179
Lemonade860
Lemonade860
LexicographicalNumbers386
LexicographicalNumbers386
LinkedListCycle151
LinkedListCycle151
LinkedListCycleII142
LinkedListCycleII142
LinkedListInBinaryTree1367
LinkedListInBinaryTree1367
LongestConsequitiveSequence128
LongestConsequitiveSequence128
LongestHappyPrefix1392
LongestHappyPrefix1392
LongestSubarrayWithMaximumBitwiseAND2419
LongestSubarrayWithMaximumBitwiseAND2419
MatrixDiagonalSum1572
MatrixDiagonalSum1572
MaxAreaOfAnIsland695
MaxAreaOfAnIsland695
MaximumDepthOfABinaryTree104
MaximumDepthOfABinaryTree104
MaximumLengthOfPairChain646
MaximumLengthOfPairChain646
MaximumNumberOfEvents1353
MaximumNumberOfEvents1353
MaximumProfitInJobScheduling1235
MaximumProfitInJobScheduling1235
MaximumSubArray53
MaximumSubArray53
MaximumSumOfDistinctSubarraysWithLengthK2461
MaximumSumOfDistinctSubarraysWithLengthK2461
MaximumUnitsOnTruck1710
MaximumUnitsOnTruck1710
MaximumWidthRamp962
MaximumWidthRamp962
MaximumXORForEachQuery1829
MaximumXORForEachQuery1829
MeetingSchedule920
MeetingSchedule920
MergeTwoSortedList22
MergeTwoSortedList22
MinCostClimbingStairs746
MinCostClimbingStairs746
MinStack155
MinStack155
MinimumAbsoluteSumDifference1818
MinimumAbsoluteSumDifference1818
MinimumAddToMakeParenthesesValid921
MinimumAddToMakeParenthesesValid921
MinimumBitFlipsToConvertNumber2220
MinimumBitFlipsToConvertNumber2220
MinimumCostToConnectAllPoints1584
MinimumCostToConnectAllPoints1584
MinimumNumberOfSwapsToMakeTheStringBalanced1963
MinimumNumberOfSwapsToMakeTheStringBalanced1963
MinimumSizeSubarraySum209
MinimumSizeSubarraySum209
MinimumTimeDifference539
MinimumTimeDifference539
MostStonesRemoved947
MostStonesRemoved947
MyCalendarI729
MyCalendarI729
MyCalendarII731
MyCalendarII731
MyCalendarIII732
MyCalendarIII732
NQueens51
NQueens51
NonOverlappingIntervals435
NonOverlappingIntervals435
NumberOfProvinces547
NumberOfProvinces547
PacificAtlanticWaterflow417
PacificAtlanticWaterflow417
PalindromeNumber9
PalindromeNumber9
PancakeSorting969
PancakeSorting969
PartitionLabels763
PartitionLabels763
PathWithMaximumProbability1514
PathWithMaximumProbability1514
Permutations46
Permutations46
View all files
Repository files navigation
README
More
items
LeetCode Problems in Java
About
My LeetCode journey
leetcode.com/u/codeforreal/
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.