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
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
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 }}
zhuango
/
leetCode
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
10
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
/
cppForLeetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetCode
/
cppForLeetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1038_BinarySearchTreetoGreaterSumTree.cpp
1038_BinarySearchTreetoGreaterSumTree.cpp
108_ConvertSortedArrayBinarySearchTree.cpp
108_ConvertSortedArrayBinarySearchTree.cpp
109_ConvertSortedListtoBinarySearchTree.cpp
109_ConvertSortedListtoBinarySearchTree.cpp
11_ContainerWithMostWater.cpp
11_ContainerWithMostWater.cpp
120_Triangle.cpp
120_Triangle.cpp
120_Triangle1.cpp
120_Triangle1.cpp
121_BestTimetoBuyandSellStock.cpp
121_BestTimetoBuyandSellStock.cpp
122_BestTimetoBuyandSellStockII.cpp
122_BestTimetoBuyandSellStockII.cpp
123_BestTimeBuyandSellStockIII.cpp
123_BestTimeBuyandSellStockIII.cpp
124_BinaryTreeMaximumPathSum.cpp
124_BinaryTreeMaximumPathSum.cpp
124_BinaryTreeMaximumPathSum1.cpp
124_BinaryTreeMaximumPathSum1.cpp
125_ValidPalindrome.cpp
125_ValidPalindrome.cpp
128_LongestConsecutiveSequence.cpp
128_LongestConsecutiveSequence.cpp
12_IntegertoRoman.cpp
12_IntegertoRoman.cpp
133_CloneGraph.cpp
133_CloneGraph.cpp
13_RomantoInteger.cpp
13_RomantoInteger.cpp
146_LRUCache.cpp
146_LRUCache.cpp
151_ReverseWordsInString.c
151_ReverseWordsInString.c
153_FindMinimuminRotatedSortedArray.cpp
153_FindMinimuminRotatedSortedArray.cpp
162_FindPeakElement.cpp
162_FindPeakElement.cpp
166_FractiontoRecurringDecimal.cpp
166_FractiontoRecurringDecimal.cpp
16_3SumClosest.1.cpp
16_3SumClosest.1.cpp
16_3SumClosest.cpp
16_3SumClosest.cpp
17_LetterCombinationsofaPhoneNumber.cpp
17_LetterCombinationsofaPhoneNumber.cpp
187_RepeatedDNASequences.cpp
187_RepeatedDNASequences.cpp
188_BestTimetoBuyandSellStockIV.cpp
188_BestTimetoBuyandSellStockIV.cpp
18_4Sum.cpp
18_4Sum.cpp
200_NumberofIslands.cpp
200_NumberofIslands.cpp
207_CourseSchedule.cpp
207_CourseSchedule.cpp
209_MinimumSizeSubarraySum.cpp
209_MinimumSizeSubarraySum.cpp
210_CourseScheduleII.1.cpp
210_CourseScheduleII.1.cpp
210_CourseScheduleII.cpp
210_CourseScheduleII.cpp
216_CombinationSumIII.cpp
216_CombinationSumIII.cpp
227_BasicCalculatorII.1.cpp
227_BasicCalculatorII.1.cpp
227_BasicCalculatorII.cpp
227_BasicCalculatorII.cpp
228_SummaryRanges.cpp
228_SummaryRanges.cpp
230_KthSmallestElementBST.cpp
230_KthSmallestElementBST.cpp
236_LowestCommonAncestorBinaryTree.cpp
236_LowestCommonAncestorBinaryTree.cpp
264_UglyNumberII.cpp
264_UglyNumberII.cpp
274_H-Index.1.cpp
274_H-Index.1.cpp
274_H-Index.cpp
274_H-Index.cpp
279_PerfectSquares.cpp
279_PerfectSquares.cpp
279_SerializeDeserializeBT.cpp
279_SerializeDeserializeBT.cpp
287_FindDuplicateNumber.cpp
287_FindDuplicateNumber.cpp
289_GameLife.1.cpp
289_GameLife.1.cpp
289_GameLife.cpp
289_GameLife.cpp
29_DivideTwoIntegers.cpp
29_DivideTwoIntegers.cpp
2_AddTwoNumbers.cpp
2_AddTwoNumbers.cpp
300_LongestIncreasingSubsequence.cpp
300_LongestIncreasingSubsequence.cpp
309_BestTimetoBuyandSellStockwithCooldown.cpp
309_BestTimetoBuyandSellStockwithCooldown.cpp
313_SuperUglyNumber.cpp
313_SuperUglyNumber.cpp
31_NextPermutation.cpp
31_NextPermutation.cpp
332_ReconstructItinerary.cpp
332_ReconstructItinerary.cpp
33_SearchinRotatedSortedArray.cpp
33_SearchinRotatedSortedArray.cpp
347TopKFrequentElements.cpp
347TopKFrequentElements.cpp
34_SearchRange.1.cpp
34_SearchRange.1.cpp
34_SearchRange.cpp
34_SearchRange.cpp
35_SearchInsertPosition.cpp
35_SearchInsertPosition.cpp
35_SearchInsertPosition2.cpp
35_SearchInsertPosition2.cpp
365_WaterandJugProblem.cpp
365_WaterandJugProblem.cpp
367_ValidPerfectSquare.cpp
367_ValidPerfectSquare.cpp
368_LargestDivisibleSubset.cpp
368_LargestDivisibleSubset.cpp
380_InsertDeleteGetRandom.cpp
380_InsertDeleteGetRandom.cpp
386_LexicographicalNumbers.cpp
386_LexicographicalNumbers.cpp
394_DecodeString.cpp
394_DecodeString.cpp
3_LongestSubstringWithoutRepeatingCharacters.cpp
3_LongestSubstringWithoutRepeatingCharacters.cpp
40_CombinationSumII.cpp
40_CombinationSumII.cpp
414_ThirdMaximumNumber.1.cpp
414_ThirdMaximumNumber.1.cpp
414_ThirdMaximumNumber.cpp
414_ThirdMaximumNumber.cpp
416_PartitionEqualSubsetSum.cpp
416_PartitionEqualSubsetSum.cpp
417_PacificAtlanticWaterFlow.cpp
417_PacificAtlanticWaterFlow.cpp
42_TrappingRainWater.cpp
42_TrappingRainWater.cpp
434_NumberofSegmentsinString.cpp
434_NumberofSegmentsinString.cpp
437_PathSumIII.cpp
437_PathSumIII.cpp
438_FindAllAnagramsinaString.1.cpp
438_FindAllAnagramsinaString.1.cpp
438_FindAllAnagramsinaString.cpp
438_FindAllAnagramsinaString.cpp
43_MultiplyStrings.1.cpp
43_MultiplyStrings.1.cpp
43_MultiplyStrings.cpp
43_MultiplyStrings.cpp
442_FindAllDuplicatesArray.1.cpp
442_FindAllDuplicatesArray.1.cpp
442_FindAllDuplicatesArray.cpp
442_FindAllDuplicatesArray.cpp
445_AddTwoNumbersII.2.cpp
445_AddTwoNumbersII.2.cpp
445_AddTwoNumbersII.cpp
445_AddTwoNumbersII.cpp
447_NumberofBoomerangs.cpp
447_NumberofBoomerangs.cpp
448_FindAllNumbersDisappearedArray.cpp
448_FindAllNumbersDisappearedArray.cpp
449_SerializeDeserializeBST.cpp
449_SerializeDeserializeBST.cpp
449_SerializeDeserializeBST1.cpp
449_SerializeDeserializeBST1.cpp
44_WildcardMatching.cpp
44_WildcardMatching.cpp
450_DeleteNodeinaBST.cpp
450_DeleteNodeinaBST.cpp
454_4SumII.cpp
454_4SumII.cpp
459_RepeatedSubstringPattern.cpp
459_RepeatedSubstringPattern.cpp
45_JumpGameII.1.cpp
45_JumpGameII.1.cpp
45_JumpGameII.cpp
45_JumpGameII.cpp
463_IslandPerimeter.cpp
463_IslandPerimeter.cpp
46_permutatinos.cpp
46_permutatinos.cpp
473_MatchstickstoSquare.cpp
473_MatchstickstoSquare.cpp
47_PermutationsII.cpp
47_PermutationsII.cpp
485_MaxConsecutiveOnes.cpp
485_MaxConsecutiveOnes.cpp
48_RotateImage.cpp
48_RotateImage.cpp
491_IncreasingSubsequences.cpp
491_IncreasingSubsequences.cpp
494_TargetSum.1.cpp
494_TargetSum.1.cpp
View all files
You can’t perform that action at this time.