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
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 }}
guinao
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
1
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
Latest commit
History
56 Commits
56 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitattributes
.gitattributes
.gitignore
.gitignore
3Sum Closest.cpp
3Sum Closest.cpp
3Sum.cpp
3Sum.cpp
4Sum.cpp
4Sum.cpp
4Sum_TLE.cpp
4Sum_TLE.cpp
Add Binary.cpp
Add Binary.cpp
Add Digits.cpp
Add Digits.cpp
Add Two Numbers.cpp
Add Two Numbers.cpp
Add and Search Word - Data structure design.cpp
Add and Search Word - Data structure design.cpp
Additive Number.cpp
Additive Number.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 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.cpp
Best Time to Buy and Sell Stock.cpp
Binary Search Tree Iterator.cpp
Binary Search Tree Iterator.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 Paths.cpp
Binary Tree Paths.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
Burst Balloons.cpp
Burst Balloons.cpp
Candy.cpp
Candy.cpp
Climbing Stairs.cpp
Climbing Stairs.cpp
Clone Graph.cpp
Clone Graph.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.cpp
Combination Sum.cpp
Combinations.cpp
Combinations.cpp
Compare Version Numbers.cpp
Compare Version Numbers.cpp
Construct Binary Tree from Inorder and Postorder Traversal.cpp
Construct Binary Tree from Inorder and Postorder Traversal.cpp
Construct Binary Tree from Preorder and Inorder Traversal.cpp
Construct Binary Tree from Preorder and Inorder Traversal.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
Copy List with Random Pointer.cpp
Copy List with Random Pointer.cpp
Count Complete Tree Nodes.cpp
Count Complete Tree Nodes.cpp
Count Primes.cpp
Count Primes.cpp
Count of Range Sum.cpp
Count of Range Sum.cpp
Count of Smaller Numbers After Self.cpp
Count of Smaller Numbers After Self.cpp
Course Schedule II.cpp
Course Schedule II.cpp
Course Schedule.cpp
Course Schedule.cpp
Create Maximum Number.cpp
Create Maximum Number.cpp
Decode Ways.cpp
Decode Ways.cpp
Delete Node in a Linked List.cpp
Delete Node in a Linked List.cpp
Different Ways to Add Parentheses.cpp
Different Ways to Add Parentheses.cpp
Distinct Subsequences.cpp
Distinct Subsequences.cpp
Divide Two Integers.cpp
Divide Two Integers.cpp
Dungeon Game.cpp
Dungeon Game.cpp
Edit Distance.cpp
Edit Distance.cpp
Evaluate Reverse Polish Notation.cpp
Evaluate Reverse Polish Notation.cpp
Excel Sheet Column Number.cpp
Excel Sheet Column Number.cpp
Excel Sheet Column Title.cpp
Excel Sheet Column Title.cpp
Expression Add Operators.cpp
Expression Add Operators.cpp
Factorial Trailing Zeroes.cpp
Factorial Trailing Zeroes.cpp
Find Median from Data Stream.cpp
Find Median from Data Stream.cpp
Find Minimum in Rotated Sorted Array II.cpp
Find Minimum in Rotated Sorted Array II.cpp
Find Minimum in Rotated Sorted Array.cpp
Find Minimum in Rotated Sorted Array.cpp
Find Peak Element.cpp
Find Peak Element.cpp
Find the Duplicate Number.cpp
Find the Duplicate Number.cpp
First Bad Version.cpp
First Bad Version.cpp
First Missing Positive.cpp
First Missing Positive.cpp
Flatten Binary Tree to Linked List midorder.cpp
Flatten Binary Tree to Linked List midorder.cpp
Flatten Binary Tree to Linked List.cpp
Flatten Binary Tree to Linked List.cpp
Fraction to Recurring Decimal.cpp
Fraction to Recurring Decimal.cpp
Game of Life.cpp
Game of Life.cpp
Gas Station.cpp
Gas Station.cpp
Generate Parentheses.cpp
Generate Parentheses.cpp
Gray Code.cpp
Gray Code.cpp
Group Anagrams.cpp
Group Anagrams.cpp
H-Index II.cpp
H-Index II.cpp
H-Index.cpp
H-Index.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
Implement Stack using Queues.cpp
Implement Stack using Queues.cpp
Implement Trie (Prefix Tree).cpp
Implement Trie (Prefix Tree).cpp
Implement strStr().cpp
Implement strStr().cpp
Insert Interval.cpp
Insert Interval.cpp
Insertion Sort List.cpp
Insertion Sort List.cpp
Integer to English Words.cpp
Integer to English Words.cpp
Integer to Roman.cpp
Integer to Roman.cpp
Interleaving String.cpp
Interleaving String.cpp
Intersection of Two Linked Lists.cpp
Intersection of Two Linked Lists.cpp
View all files
About
No description, website, or topics provided.
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.