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
Accelerator
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
Type
/
to 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
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
153 Commits
153 Commits
.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.