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 }}
kaidul
/
LeetCode_problems_solution
Public
Notifications
You must be signed in to change notification settings
Fork
28
Star
92
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
LeetCode_problems_solution
/
source-code
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode_problems_solution
/
source-code
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
01_Matrix.cpp
01_Matrix.cpp
132_Pattern.cpp
132_Pattern.cpp
24_Game.cpp
24_Game.cpp
3_Sum.cpp
3_Sum.cpp
3_Sum_Closest.cpp
3_Sum_Closest.cpp
3_Sum_Smaller.cpp
3_Sum_Smaller.cpp
4_Sum.cpp
4_Sum.cpp
4_Sum_II.cpp
4_Sum_II.cpp
Add_Binary.cpp
Add_Binary.cpp
Add_One_Row_to_Tree.cpp
Add_One_Row_to_Tree.cpp
Add_Strings.cpp
Add_Strings.cpp
Add_Two_Numbers.cpp
Add_Two_Numbers.cpp
Add_Two_Numbers_II.cpp
Add_Two_Numbers_II.cpp
Add_and_Search_Word_Data_structure_design.cpp
Add_and_Search_Word_Data_structure_design.cpp
Add_digits.cpp
Add_digits.cpp
Additive_Number.cpp
Additive_Number.cpp
Alien_Dictionary.cpp
Alien_Dictionary.cpp
All_O_one_Data_Structure.cpp
All_O_one_Data_Structure.cpp
All_Paths_From_Source_to_Target.cpp
All_Paths_From_Source_to_Target.cpp
All_Possible_Full_Binary_Trees.cpp
All_Possible_Full_Binary_Trees.cpp
Anagrams.cpp
Anagrams.cpp
Arithmetic_Slices.cpp
Arithmetic_Slices.cpp
Arithmetic_Slices_II_-_Subsequence.cpp
Arithmetic_Slices_II_-_Subsequence.cpp
Arranging_Coins.cpp
Arranging_Coins.cpp
Array_Nesting.cpp
Array_Nesting.cpp
Array_Partition_I.cpp
Array_Partition_I.cpp
Assign_Cookies.cpp
Assign_Cookies.cpp
Average_of_Levels_in_Binary_Tree.cpp
Average_of_Levels_in_Binary_Tree.cpp
Backspace_String_Compare.cpp
Backspace_String_Compare.cpp
Balanced_Binary_Tree.cpp
Balanced_Binary_Tree.cpp
Base_7.cpp
Base_7.cpp
Baseball_Game.cpp
Baseball_Game.cpp
Basic_Calculator.cpp
Basic_Calculator.cpp
Basic_Calculator_II.cpp
Basic_Calculator_II.cpp
Battleships_in_a_Board.cpp
Battleships_in_a_Board.cpp
Beautiful_Arrangement.cpp
Beautiful_Arrangement.cpp
Beautiful_Arrangement_II.cpp
Beautiful_Arrangement_II.cpp
Best_Meeting_Point.cpp
Best_Meeting_Point.cpp
Best_Time_to_Buy_and_Sell_Stock.cpp
Best_Time_to_Buy_and_Sell_Stock.cpp
Best_Time_to_Buy_and_Sell_Stock_II.cpp
Best_Time_to_Buy_and_Sell_Stock_II.cpp
Best_Time_to_Buy_and_Sell_Stock_III.cpp
Best_Time_to_Buy_and_Sell_Stock_III.cpp
Best_Time_to_Buy_and_Sell_Stock_IV.cpp
Best_Time_to_Buy_and_Sell_Stock_IV.cpp
Best_Time_to_Buy_and_Sell_Stock_with_Cooldown.cpp
Best_Time_to_Buy_and_Sell_Stock_with_Cooldown.cpp
Best_Time_to_Buy_and_Sell_Stock_with_Transaction_Fee.cpp
Best_Time_to_Buy_and_Sell_Stock_with_Transaction_Fee.cpp
Binary_Gap.cpp
Binary_Gap.cpp
Binary_Number_with_Alternating_Bits.cpp
Binary_Number_with_Alternating_Bits.cpp
Binary_Search_Tree_Iterator.cpp
Binary_Search_Tree_Iterator.cpp
Binary_Tree_Cameras.cpp
Binary_Tree_Cameras.cpp
Binary_Tree_Inorder_Traversal.cpp
Binary_Tree_Inorder_Traversal.cpp
Binary_Tree_Level_Order_Traversal.cpp
Binary_Tree_Level_Order_Traversal.cpp
Binary_Tree_Level_Order_Traversal_II.cpp
Binary_Tree_Level_Order_Traversal_II.cpp
Binary_Tree_Longest_Consecutive_Sequence.cpp
Binary_Tree_Longest_Consecutive_Sequence.cpp
Binary_Tree_Longest_Consecutive_Sequence_II.cpp
Binary_Tree_Longest_Consecutive_Sequence_II.cpp
Binary_Tree_Maximum_Path_Sum.cpp
Binary_Tree_Maximum_Path_Sum.cpp
Binary_Tree_Postorder_Traversal.cpp
Binary_Tree_Postorder_Traversal.cpp
Binary_Tree_Preorder_Traversal.cpp
Binary_Tree_Preorder_Traversal.cpp
Binary_Tree_Tilt.cpp
Binary_Tree_Tilt.cpp
Binary_Tree_Upside_Down.cpp
Binary_Tree_Upside_Down.cpp
Binary_Tree_Vertical_Order_Traversal.cpp
Binary_Tree_Vertical_Order_Traversal.cpp
Binary_Tree_Zigzag_Level_Order_Traversal.cpp
Binary_Tree_Zigzag_Level_Order_Traversal.cpp
Binary_Watch.cpp
Binary_Watch.cpp
Binary_tree_Right_Side_View.cpp
Binary_tree_Right_Side_View.cpp
Binary_tree_paths.cpp
Binary_tree_paths.cpp
Bitwise_AND_of_Numbers_Range.cpp
Bitwise_AND_of_Numbers_Range.cpp
Bomb_Enemy.cpp
Bomb_Enemy.cpp
Brick_Wall.cpp
Brick_Wall.cpp
Bricks_Falling_When_Hit.cpp
Bricks_Falling_When_Hit.cpp
Bulb_Switcher_II.cpp
Bulb_Switcher_II.cpp
Bulls_and_Cows.cpp
Bulls_and_Cows.cpp
Burst_Balloons.cpp
Burst_Balloons.cpp
Can_I_Win.cpp
Can_I_Win.cpp
Can_Place_Flowers.cpp
Can_Place_Flowers.cpp
Candy.cpp
Candy.cpp
Check_Completeness_of_a_Binary_Tree.cpp
Check_Completeness_of_a_Binary_Tree.cpp
Climbing_Stairs.cpp
Climbing_Stairs.cpp
Clone_Graph.cpp
Clone_Graph.cpp
Closest_Binary_Search_Tree_Value.cpp
Closest_Binary_Search_Tree_Value.cpp
Closest_Binary_Search_Tree_Value_II.cpp
Closest_Binary_Search_Tree_Value_II.cpp
Coin_Change.cpp
Coin_Change.cpp
Coin_Change_2.cpp
Coin_Change_2.cpp
Combination_Sum.cpp
Combination_Sum.cpp
Combination_Sum_II.cpp
Combination_Sum_II.cpp
Combination_Sum_III.cpp
Combination_Sum_III.cpp
Combination_Sum_IV.cpp
Combination_Sum_IV.cpp
Combinations.cpp
Combinations.cpp
Combine_Two_Tables.sql
Combine_Two_Tables.sql
Compare_Version_Numbers.cpp
Compare_Version_Numbers.cpp
Complex_Number_Multiplication.cpp
Complex_Number_Multiplication.cpp
Concatenated_Words.cpp
Concatenated_Words.cpp
Consecutive_Numbers.sql
Consecutive_Numbers.sql
Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.cpp
Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.cpp
Construct_Binary_Tree_from_Inorder_and_Preorder_Traversal.cpp
Construct_Binary_Tree_from_Inorder_and_Preorder_Traversal.cpp
Construct_Binary_Tree_from_Preorder_and_Postorder_Traversal.cpp
Construct_Binary_Tree_from_Preorder_and_Postorder_Traversal.cpp
Construct_Binary_Tree_from_String.cpp
Construct_Binary_Tree_from_String.cpp
Construct_String_from_Binary_Tree.cpp
Construct_String_from_Binary_Tree.cpp
Construct_the_Rectangle.cpp
Construct_the_Rectangle.cpp
Container_With_Most_Water.cpp
Container_With_Most_Water.cpp
Contains_Duplicate.cpp
Contains_Duplicate.cpp
Contains_Duplicate_II.cpp
Contains_Duplicate_II.cpp
Contains_Duplicate_III.cpp
Contains_Duplicate_III.cpp
View all files
You can’t perform that action at this time.