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 }}
peixinli
/
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
5 Commits
5 Commits
3Sum Closest.cpp
3Sum Closest.cpp
3Sum.cpp
3Sum.cpp
4Sum.cpp
4Sum.cpp
Add Two Numbers.cpp
Add Two Numbers.cpp
Balanced Binary Tree.cpp
Balanced Binary Tree.cpp
Basic Calculator II.cpp
Basic Calculator II.cpp
Basic Calculator.cpp
Basic Calculator.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.cpp
Best Time to Buy and Sell Stock.cpp
Binary Tree Inorder Traversal.cpp
Binary Tree Inorder Traversal.cpp
Binary Tree Level Order Traversal II.cpp
Binary Tree Level Order Traversal II.cpp
Binary Tree Level Order Traversal.cpp
Binary Tree Level Order Traversal.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 Right Side View.cpp
Binary Tree Right Side View.cpp
Binary Tree Zigzag Level Order Traversal.cpp
Binary Tree Zigzag Level Order Traversal.cpp
Bitwise AND of Numbers Range.cpp
Bitwise AND of Numbers Range.cpp
Bulb Switcher.cpp
Bulb Switcher.cpp
Bulls and Cows.cpp
Bulls and Cows.cpp
Climbing Stairs.cpp
Climbing Stairs.cpp
Coin Change.cpp
Coin Change.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
Combination Sum.cpp
Combination Sum.cpp
Combinations.cpp
Combinations.cpp
Construct BT from Inorder and Postorder.cpp
Construct BT from Inorder and Postorder.cpp
Construct Binary Tree from Preorder and Inorder T
Construct Binary Tree from Preorder and Inorder T
Construct Binary Tree from Preorder.cpp
Construct Binary Tree from Preorder.cpp
Container With Most Water.cpp
Container With Most Water.cpp
Contains Duplicate II.cpp
Contains Duplicate II.cpp
Contains Duplicate III.cpp
Contains Duplicate III.cpp
Contains Duplicate.cpp
Contains Duplicate.cpp
Convert Sorted Array to Binary Search Tree.cpp
Convert Sorted Array to Binary Search Tree.cpp
Convert Sorted List to Binary Search Tree.cpp
Convert Sorted List to Binary Search Tree.cpp
Count Complete Tree Nodes.c
Count Complete Tree Nodes.c
Count Numbers with Unique Digits.cpp
Count Numbers with Unique Digits.cpp
Course Schedule II.cpp
Course Schedule II.cpp
Course Schedule.cpp
Course Schedule.cpp
Decode Ways.cpp
Decode Ways.cpp
Distinct Subsequences.cpp
Distinct Subsequences.cpp
Divide Two Integers.cpp
Divide Two Integers.cpp
Find K Pairs with Smallest Sums.cpp
Find K Pairs with Smallest Sums.cpp
Flatten Binary Tree to Linked List.cpp
Flatten Binary Tree to Linked List.cpp
Generate Parentheses.cpp
Generate Parentheses.cpp
Gray Code.cpp
Gray Code.cpp
Group Anagrams.cpp
Group Anagrams.cpp
Guess Number Higher or Lower.cpp
Guess Number Higher or Lower.cpp
Happy Number.cpp
Happy Number.cpp
House Robber II.cpp
House Robber II.cpp
House Robber.cpp
House Robber.cpp
Implement Queue using Stacks.cpp
Implement Queue using Stacks.cpp
Integer to Roman.cpp
Integer to Roman.cpp
Intersection of Two Arrays.cpp
Intersection of Two Arrays.cpp
Jump Game.cpp
Jump Game.cpp
Kth Largest Element in an Array.cpp
Kth Largest Element in an Array.cpp
Kth Smallest Element in a BST.cpp
Kth Smallest Element in a BST.cpp
Largest Divisible Subset.cpp
Largest Divisible Subset.cpp
Length of Last Word.cpp
Length of Last Word.cpp
Letter Combinations of a Phone Number.cpp
Letter Combinations of a Phone Number.cpp
Longest Common Prefix.cpp
Longest Common Prefix.cpp
Longest Increasing Path in a Matrix.cpp
Longest Increasing Path in a Matrix.cpp
Longest Increasing Subsequence.cpp
Longest Increasing Subsequence.cpp
Longest Palindromic Substring.cpp
Longest Palindromic Substring.cpp
Longest Substring Without Repeating Characters.cpp
Longest Substring Without Repeating Characters.cpp
Longest Valid Parentheses.cpp
Longest Valid Parentheses.cpp
Lowest Common Ancestor of Search Tree.cpp
Lowest Common Ancestor of Search Tree.cpp
Majority Element II.cpp
Majority Element II.cpp
Maximal Square.c
Maximal Square.c
Maximum Depth of Binary Tree.cpp
Maximum Depth of Binary Tree.cpp
Maximum Product Subarray.cpp
Maximum Product Subarray.cpp
Maximum Subarray.cpp
Maximum Subarray.cpp
Median of Two Sorted Arrays.cpp
Median of Two Sorted Arrays.cpp
Merge k Sorted Lists.cpp
Merge k Sorted Lists.cpp
Minimum Depth of Binary Tree.cpp
Minimum Depth of Binary Tree.cpp
Minimum Path Sum.cpp
Minimum Path Sum.cpp
Minimum Size Subarray Sum.cpp
Minimum Size Subarray Sum.cpp
Minimum Window Substring.cpp
Minimum Window Substring.cpp
Move Zeroes.cpp
Move Zeroes.cpp
Multiply Strings.cpp
Multiply Strings.cpp
N-Queens.cpp
N-Queens.cpp
Next Permutation.cpp
Next Permutation.cpp
Number of Digit One.cpp
Number of Digit One.cpp
Number of Islands.cpp
Number of Islands.cpp
Odd Even Linked List.cpp
Odd Even Linked List.cpp
Palindrome Linked List.cpp
Palindrome Linked List.cpp
Palindrome Partitioning II.cpp
Palindrome Partitioning II.cpp
Palindrome Partitioning.cpp
Palindrome Partitioning.cpp
Pascal's Triangle.cpp
Pascal's Triangle.cpp
Path Sum II.cpp
Path Sum II.cpp
Path Sum.cpp
Path Sum.cpp
Perfect Squares.cpp
Perfect Squares.cpp
Permutation Sequence.cpp
Permutation Sequence.cpp
Permutations II.cpp
Permutations II.cpp
Permutations.cpp
Permutations.cpp
Power of Four.cpp
Power of Four.cpp
Product of Array Except Self.cpp
Product of Array Except Self.cpp
Range Sum Query - Immutable.cpp
Range Sum Query - Immutable.cpp
Range Sum Query - Mutable.cpp
Range Sum Query - Mutable.cpp
View all files
About
No description, website, or topics provided.
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.