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 }}
charles03
/
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
Files
Expand file tree
master
Breadcrumbs
LeetCode
/
src
/
com
/
leetcode
/
dynamicprogram
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode
/
src
/
com
/
leetcode
/
dynamicprogram
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
ArithmeticSlicesII_446.java
ArithmeticSlicesII_446.java
ArithmeticSlices_413.java
ArithmeticSlices_413.java
BestTimeToBuySellStockIII_123.java
BestTimeToBuySellStockIII_123.java
BestTimeToBuySellStockII_122.java
BestTimeToBuySellStockII_122.java
BestTimeToBuySellStockIV_188.java
BestTimeToBuySellStockIV_188.java
BestTimeToBuySellStock_121.java
BestTimeToBuySellStock_121.java
CanIWin_464.java
CanIWin_464.java
ClimbingStairs_70.java
ClimbingStairs_70.java
CoinChange_322.java
CoinChange_322.java
CombinationSumIV_377.java
CombinationSumIV_377.java
ConcatenatedWords_472.java
ConcatenatedWords_472.java
CountBinaryStrWithoutConsecutiveOne.java
CountBinaryStrWithoutConsecutiveOne.java
CountTheRepetitions_466.java
CountTheRepetitions_466.java
DecodeWays_91.java
DecodeWays_91.java
DeleteOperationForTwoStrings_583.java
DeleteOperationForTwoStrings_583.java
Fibonacci.java
Fibonacci.java
FreedomTrail_514.java
FreedomTrail_514.java
FrogJump_403.java
FrogJump_403.java
GuessNumberHigherorLowerII_375.java
GuessNumberHigherorLowerII_375.java
HouseRobberII_213.java
HouseRobberII_213.java
HouseRobber_198.java
HouseRobber_198.java
InterleavingString_97.java
InterleavingString_97.java
IsSubsequence_392.java
IsSubsequence_392.java
LargestDivisibleSubset_368.java
LargestDivisibleSubset_368.java
LongestIncreasingSubsequence_300.java
LongestIncreasingSubsequence_300.java
LongestPalindromicSubsequence_516.java
LongestPalindromicSubsequence_516.java
Matrix01_542.java
Matrix01_542.java
MaximalRectangle_85.java
MaximalRectangle_85.java
MaximalSquare_221.java
MaximalSquare_221.java
MaximumProductSubarray_152.java
MaximumProductSubarray_152.java
MinimumMovesToEqualArrayElement_453.java
MinimumMovesToEqualArrayElement_453.java
NonOverlappingInterval_435.java
NonOverlappingInterval_435.java
OnesAndZeros_474.java
OnesAndZeros_474.java
OutOfBoundaryPaths_576.java
OutOfBoundaryPaths_576.java
PartitionEqualSubsetSum_416.java
PartitionEqualSubsetSum_416.java
PerfectSquares_279.java
PerfectSquares_279.java
PredictTheWinner_486.java
PredictTheWinner_486.java
RangeSumQuery2DImmutable_304.java
RangeSumQuery2DImmutable_304.java
RangeSumQueryImmutable_303.java
RangeSumQueryImmutable_303.java
RemoveBoxes_546.java
RemoveBoxes_546.java
SplitArrayLargestSum_410.java
SplitArrayLargestSum_410.java
StrongPasswordChecker_420.java
StrongPasswordChecker_420.java
StudentAttendenceRecordII_552.java
StudentAttendenceRecordII_552.java
SuperWashingMachines_517.java
SuperWashingMachines_517.java
TargetSum_494.java
TargetSum_494.java
Triangle_120.java
Triangle_120.java
UglyNumberII_264.java
UglyNumberII_264.java
UniqueBinarySearchTreeII_95.java
UniqueBinarySearchTreeII_95.java
UniqueBinarySearchTree_96.java
UniqueBinarySearchTree_96.java
UniqueSubstringsInWrapString_467.java
UniqueSubstringsInWrapString_467.java
WiggleSequence_376.java
WiggleSequence_376.java
WordBreakII_140.java
WordBreakII_140.java
WordBreak_139.java
WordBreak_139.java
View all files
You can’t perform that action at this time.