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 }}
zhengdanwei
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
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
91 Commits
91 Commits
3Sum_Closest
3Sum_Closest
3sum
3sum
4sum
4sum
Add_Two_Numbers
Add_Two_Numbers
Anagrams
Anagrams
Balanced_Binary_Tree
Balanced_Binary_Tree
Best_Time_to_Buy_and_Sell_Stock
Best_Time_to_Buy_and_Sell_Stock
Best_Time_to_Buy_and_Sell_Stock_II
Best_Time_to_Buy_and_Sell_Stock_II
Binary_Tree_Inorder_Traversal
Binary_Tree_Inorder_Traversal
Binary_Tree_Level_Order_Traversal
Binary_Tree_Level_Order_Traversal
Binary_Tree_Level_Order_Traversal_II
Binary_Tree_Level_Order_Traversal_II
Binary_Tree_Maximum_Path_Sum
Binary_Tree_Maximum_Path_Sum
Binary_Tree_Postorder_Traversal
Binary_Tree_Postorder_Traversal
Binary_Tree_Preorder_Traversal
Binary_Tree_Preorder_Traversal
Binary_Tree_Zigzag_Level_Order_Traversal
Binary_Tree_Zigzag_Level_Order_Traversal
Climbing_Stairs
Climbing_Stairs
Climing_Stairs
Climing_Stairs
Combinations
Combinations
Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal
Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal
Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal
Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal
Container_With_Most_Water
Container_With_Most_Water
Convert_Sorted_Array_to Binary_Search_Tree
Convert_Sorted_Array_to Binary_Search_Tree
Convert_Sorted_List_to_Binary_Search_Tree
Convert_Sorted_List_to_Binary_Search_Tree
Divide_Two_Integers
Divide_Two_Integers
Edit_Distance
Edit_Distance
Evaluate_Reverse_Polish_Notation
Evaluate_Reverse_Polish_Notation
Flatten_Binary_Tree_to_Linked_List
Flatten_Binary_Tree_to_Linked_List
Generate_Parentheses
Generate_Parentheses
Implement_strStr
Implement_strStr
Integer_to_Roman
Integer_to_Roman
Interleaving_String
Interleaving_String
Jump_Game
Jump_Game
LICENSE
LICENSE
Largest_Rectangle_in_Histogram
Largest_Rectangle_in_Histogram
Length_of_Last_Word
Length_of_Last_Word
Letter_Combinations_of_a_Phone_Number
Letter_Combinations_of_a_Phone_Number
Longest_Common_Prefix
Longest_Common_Prefix
Longest_Palindromic_Substring
Longest_Palindromic_Substring
Longest_Substring_Without_Repeating_Characters
Longest_Substring_Without_Repeating_Characters
Longest_Valid_Parentheses
Longest_Valid_Parentheses
Maximum_Depth_of_Binary_Tree
Maximum_Depth_of_Binary_Tree
Maximum_Subarray
Maximum_Subarray
Median_of_Two_Sorted_Arrays
Median_of_Two_Sorted_Arrays
Merge_Two_Sorted_Lists
Merge_Two_Sorted_Lists
Merge_k_Sorted_Lists
Merge_k_Sorted_Lists
Minimum_Depth_of_Binary_Tree
Minimum_Depth_of_Binary_Tree
Minimum_Window_Substring
Minimum_Window_Substring
N-Queens
N-Queens
N-Queens_II
N-Queens_II
Next_Permutation
Next_Permutation
Palindrome_Number
Palindrome_Number
Palindrome_Partitioning
Palindrome_Partitioning
Palindrome_Partitioning_II
Palindrome_Partitioning_II
Partition_List
Partition_List
Path_Sum
Path_Sum
Path_Sum_II
Path_Sum_II
Permutation_Sequence
Permutation_Sequence
Plus_One
Plus_One
Populating_Next_Right_Pointers_in_Each_Node
Populating_Next_Right_Pointers_in_Each_Node
Populating_Next_Right_Pointers_in_Each_Node_II
Populating_Next_Right_Pointers_in_Each_Node_II
README.md
README.md
Recover_Binary_Search_Tree
Recover_Binary_Search_Tree
Regular_Expression_Matching
Regular_Expression_Matching
Remove_Duplicates_from_Sorted_Array
Remove_Duplicates_from_Sorted_Array
Remove_Duplicates_from_Sorted_Array_II
Remove_Duplicates_from_Sorted_Array_II
Remove_Duplicates_from_Sorted_List
Remove_Duplicates_from_Sorted_List
Remove_Duplicates_from_Sorted_List_II
Remove_Duplicates_from_Sorted_List_II
Remove_Element
Remove_Element
Remove_Nth_Node_From_End_of_List
Remove_Nth_Node_From_End_of_List
Restore_IP_Addresses
Restore_IP_Addresses
Reverse_Integer
Reverse_Integer
Reverse_Linked_List_II
Reverse_Linked_List_II
Reverse_Nodes_in_k-Group
Reverse_Nodes_in_k-Group
Roman_to_Integer
Roman_to_Integer
Rotate_Image
Rotate_Image
Rotate_List
Rotate_List
Same_Tree
Same_Tree
Search_Insert_Position
Search_Insert_Position
Search_a_2D_Matrix
Search_a_2D_Matrix
Search_for_a_Range
Search_for_a_Range
Search_in_Rotated_Sorted_Array
Search_in_Rotated_Sorted_Array
Search_in_Rotated_Sorted_Array_II
Search_in_Rotated_Sorted_Array_II
Set Matrix Zeroes
Set Matrix Zeroes
Simplify_Path
Simplify_Path
Sort_Colors
Sort_Colors
Spiral_Matrix
Spiral_Matrix
Spiral_Matrix_II
Spiral_Matrix_II
Sqrt(x)
Sqrt(x)
Subsets
Subsets
Substring_with_Concatenation_of_All_Words
Substring_with_Concatenation_of_All_Words
Swap_Nodes_in_Pairs
Swap_Nodes_in_Pairs
Symmetric_Tree
Symmetric_Tree
Text_Justification
Text_Justification
Two_Sum
Two_Sum
Unique_Binary_Search_Trees
Unique_Binary_Search_Trees
Unique_Binary_Search_Trees_II
Unique_Binary_Search_Trees_II
Valid_Parentheses
Valid_Parentheses
Valid_Sudoku
Valid_Sudoku
Validate_Binary_Search_Tree
Validate_Binary_Search_Tree
Word_Search
Word_Search
View all files
Repository files navigation
README
Unlicense license
More
items
leetcode
About
No description, website, or topics provided.
Resources
Readme
Unlicense
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.