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 }}
Littlehhh
/
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
303 Commits
303 Commits
0001_TwoSum
0001_TwoSum
0002_AddTwoNumbers
0002_AddTwoNumbers
0003_LongestSubstringWithoutRepeatingCharacters
0003_LongestSubstringWithoutRepeatingCharacters
0004_MedianOfTwoSortedArrays
0004_MedianOfTwoSortedArrays
0005_LongestPalindromicSubstring
0005_LongestPalindromicSubstring
0006_ZigZagConversion
0006_ZigZagConversion
0007_ReverseInteger
0007_ReverseInteger
0008_StringtoInteger
0008_StringtoInteger
0009_PalindromeNumber
0009_PalindromeNumber
0010_RegularExpressionMatching
0010_RegularExpressionMatching
0011_ContainerWithMostWater
0011_ContainerWithMostWater
0012_IntegertoRoman
0012_IntegertoRoman
0013_RomantoInteger
0013_RomantoInteger
0014_LongestCommonPrefix
0014_LongestCommonPrefix
0015_3Sum
0015_3Sum
0016_3SumClosest
0016_3SumClosest
0017_LetterCombinationsofaPhoneNumber
0017_LetterCombinationsofaPhoneNumber
0018_4Sum
0018_4Sum
0019_RemoveNthNodeFromEndofList
0019_RemoveNthNodeFromEndofList
0020_ValidParentheses
0020_ValidParentheses
0021_MergeTwoSortedLists
0021_MergeTwoSortedLists
0022_GenerateParentheses
0022_GenerateParentheses
0023_MergekSortedLists
0023_MergekSortedLists
0024_SwapNodesinPairs
0024_SwapNodesinPairs
0025_ReverseNodesinKGroup
0025_ReverseNodesinKGroup
0026_RemoveDuplicatesfromSortedArray
0026_RemoveDuplicatesfromSortedArray
0027_RemoveElement
0027_RemoveElement
0028_ImplementstrStr
0028_ImplementstrStr
0029_DivideTwoIntegers
0029_DivideTwoIntegers
0030_SubstringwithConcatenationofAllWords
0030_SubstringwithConcatenationofAllWords
0031_NextPermutation
0031_NextPermutation
0032_LongestValidParentheses
0032_LongestValidParentheses
0033_SearchinRotatedSortedArray
0033_SearchinRotatedSortedArray
0034_FindFirstandLastPositionofElementinSortedArray
0034_FindFirstandLastPositionofElementinSortedArray
0035_SearchInsertPosition
0035_SearchInsertPosition
0036_ValidSudoku
0036_ValidSudoku
0037_SudokuSolver
0037_SudokuSolver
0038_CountandSay
0038_CountandSay
0039_CombinationSum
0039_CombinationSum
0040_CombinationSumII
0040_CombinationSumII
0041_FirstMissingPositive
0041_FirstMissingPositive
0042_TrappingRainWater
0042_TrappingRainWater
0043_MultiplyStrings
0043_MultiplyStrings
0044_WildcardMatching
0044_WildcardMatching
0045_JumpGameII
0045_JumpGameII
0046_Permutations
0046_Permutations
0047_PermutationsII
0047_PermutationsII
0048_RotateImage
0048_RotateImage
0049_GroupAnagrams
0049_GroupAnagrams
0050_PowFunction
0050_PowFunction
0051_N-Queens
0051_N-Queens
0052_N-QueensII
0052_N-QueensII
0053_MaximumSubarray
0053_MaximumSubarray
0054_SpiralMatrix
0054_SpiralMatrix
0055_JumpGame
0055_JumpGame
0056_MergeIntervals
0056_MergeIntervals
0057_InsertInterval
0057_InsertInterval
0058_LengthofLastWord
0058_LengthofLastWord
0059_SpiralMatrixII
0059_SpiralMatrixII
0060_PermutationSequence
0060_PermutationSequence
0061_RotateList
0061_RotateList
0062_UniquePaths
0062_UniquePaths
0063_UniquePathsII
0063_UniquePathsII
0064_MinimumPathSum
0064_MinimumPathSum
0065_ValidNumber
0065_ValidNumber
0066_PlusOne
0066_PlusOne
0067_AddBinary
0067_AddBinary
0068_TextJustification
0068_TextJustification
0069_SqrtX
0069_SqrtX
0070_ClimbingStairs
0070_ClimbingStairs
0071_SimplifyPath
0071_SimplifyPath
0072_EditDistance
0072_EditDistance
0073_SetMatrixZeroes
0073_SetMatrixZeroes
0074_Searcha2DMatrix
0074_Searcha2DMatrix
0075_SortColors
0075_SortColors
0076_MinimumWindowSubstring
0076_MinimumWindowSubstring
0077_Combinations
0077_Combinations
0081_SearchinRotatedSortedArrayII
0081_SearchinRotatedSortedArrayII
0082_RemoveDuplicatesfromSortedListII
0082_RemoveDuplicatesfromSortedListII
0084_LargestRectangleinHistogram
0084_LargestRectangleinHistogram
0088_MergeSortedArray
0088_MergeSortedArray
0093_RestoreIPAddresses
0093_RestoreIPAddresses
0094_BinaryTreeInorderTraversal
0094_BinaryTreeInorderTraversal
0095_UniqueBinarySearchTreesII
0095_UniqueBinarySearchTreesII
0096_UniqueBinarySearchTrees
0096_UniqueBinarySearchTrees
0097_InterleavingString
0097_InterleavingString
0098_ValidateBinarySearchTree
0098_ValidateBinarySearchTree
0099_RecoverBinarySearchTree
0099_RecoverBinarySearchTree
0100_SameTree
0100_SameTree
0101_SymmetricTree
0101_SymmetricTree
0102_BinaryTreeLevelOrderTraversal
0102_BinaryTreeLevelOrderTraversal
0104_MaximumDepthofBinaryTree
0104_MaximumDepthofBinaryTree
0105_ConstructBinaryTreefromPreorderandInorderTraversal
0105_ConstructBinaryTreefromPreorderandInorderTraversal
0108_ConvertSortedArraytoBinarySearchTree
0108_ConvertSortedArraytoBinarySearchTree
0109_ConvertSortedListtoBinarySearchTree
0109_ConvertSortedListtoBinarySearchTree
0110_BalancedBinaryTree
0110_BalancedBinaryTree
0112_PathSum
0112_PathSum
0118_PascalTriangle
0118_PascalTriangle
0120_Triangle
0120_Triangle
0122_BestTimetoBuyandSellStock
0122_BestTimetoBuyandSellStock
View all files
Repository files navigation
README
More
items
LeetCode Solutions
About
LeetCode Solutions ✨ ✨
Topics
cpp
leetcode-solutions
python
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.