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
Small and medium teams
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 }}
hedongprogramming
leetcode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
leetcode
/
Java
/
src
/
com
/
longluo
/
leetcode
/
dp
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetcode
/
Java
/
src
/
com
/
longluo
/
leetcode
/
dp
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Problem1048_longestStringChain.java
Problem1048_longestStringChain.java
Problem1130_minimumCostTreeFromLeafValues.java
Problem1130_minimumCostTreeFromLeafValues.java
Problem1143_longestCommonSubsequence.java
Problem1143_longestCommonSubsequence.java
Problem1155_numberOfDiceRollsWithTargetSum.java
Problem1155_numberOfDiceRollsWithTargetSum.java
Problem115_numDistinct.java
Problem115_numDistinct.java
Problem1220_countVowelPermutation.java
Problem1220_countVowelPermutation.java
Problem1235_maximumProfitInJobScheduling.java
Problem1235_maximumProfitInJobScheduling.java
Problem1262_greatestSumDivisibleByThree.java
Problem1262_greatestSumDivisibleByThree.java
Problem1269_numberOfWaysToStayInTheSamePlaceAfterSomeSteps.java
Problem1269_numberOfWaysToStayInTheSamePlaceAfterSomeSteps.java
Problem1326_minimumNumberofTapstoOpentoWateraGarden.java
Problem1326_minimumNumberofTapstoOpentoWateraGarden.java
Problem132_minCut.java
Problem132_minCut.java
Problem1335_minimumDifficultyOfAJobSchedule.java
Problem1335_minimumDifficultyOfAJobSchedule.java
Problem1402_reducingDishes.java
Problem1402_reducingDishes.java
Problem1449_formLargestIntegerWithDigitsThatAddUpToTarget.java
Problem1449_formLargestIntegerWithDigitsThatAddUpToTarget.java
Problem1531_stringCompression_ii.java
Problem1531_stringCompression_ii.java
Problem1626_bestTeamWithNoConflicts.java
Problem1626_bestTeamWithNoConflicts.java
Problem1641_countSortedVowelStrings.java
Problem1641_countSortedVowelStrings.java
Problem1664_waysToMakeAFairArray.java
Problem1664_waysToMakeAFairArray.java
Problem1770_maximumScore.java
Problem1770_maximumScore.java
Problem1815_maximumNumberofGroupsGettingFreshDonuts.java
Problem1815_maximumNumberofGroupsGettingFreshDonuts.java
Problem1824_minimumSidewayJumps.java
Problem1824_minimumSidewayJumps.java
Problem188_maxProfit.java
Problem188_maxProfit.java
Problem213_houseRobber_ii.java
Problem213_houseRobber_ii.java
Problem304_NumMatrix.java
Problem304_NumMatrix.java
Problem343_integerBreak.java
Problem343_integerBreak.java
Problem354_maxEnvelopes.java
Problem354_maxEnvelopes.java
Problem375_guessNumberHigherOrLower_ii.java
Problem375_guessNumberHigherOrLower_ii.java
Problem377_combinationSum_iv.java
Problem377_combinationSum_iv.java
Problem403_frogJump.java
Problem403_frogJump.java
Problem413_arithmeticSlices.java
Problem413_arithmeticSlices.java
Problem474_onesAndZeroes.java
Problem474_onesAndZeroes.java
Problem518_coinChange2.java
Problem518_coinChange2.java
Problem552_studentAttendanceRecord_ii.java
Problem552_studentAttendanceRecord_ii.java
Problem576_outOfBoundaryPaths.java
Problem576_outOfBoundaryPaths.java
Problem583_deleteOperationForTwoStrings.java
Problem583_deleteOperationForTwoStrings.java
Problem600_findIntegers.java
Problem600_findIntegers.java
Problem629_kInversePairs.java
Problem629_kInversePairs.java
Problem63_uniquePaths_ii.java
Problem63_uniquePaths_ii.java
Problem688_knightProbabilityInChessboard.java
Problem688_knightProbabilityInChessboard.java
Problem740_deleteAndEarn.java
Problem740_deleteAndEarn.java
Problem746_minCostClimbingStairs.java
Problem746_minCostClimbingStairs.java
Problem764_largestPlusSign.java
Problem764_largestPlusSign.java
Problem788_rotatedDigits.java
Problem788_rotatedDigits.java
Problem790_dominoAndTrominoTiling.java
Problem790_dominoAndTrominoTiling.java
Problem823_binaryTreesWithFactors.java
Problem823_binaryTreesWithFactors.java
Problem87_scrambleString.java
Problem87_scrambleString.java
Problem902_numbersAtMostNGivenDigitSet.java
Problem902_numbersAtMostNGivenDigitSet.java
Problem926_minFlipsMonoIncr.java
Problem926_minFlipsMonoIncr.java
Problem935_knightDialer.java
Problem935_knightDialer.java
Problem940_distinctSubsequences_ii.java
Problem940_distinctSubsequences_ii.java
Problem983_minimumCostForTickets.java
Problem983_minimumCostForTickets.java
View all files
You can’t perform that action at this time.