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 }}
ericgyl817
LeetCode-Solutions
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode-Solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
👨💻 Solutions to interesting LeetCode problems
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
29 Commits
29 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.DS_Store
.DS_Store
3Sum Closest.cpp
3Sum Closest.cpp
3Sum.cpp
3Sum.cpp
4Sum II.cpp
4Sum II.cpp
4Sum.cpp
4Sum.cpp
Add Two Numbers.cpp
Add Two Numbers.cpp
Alien Dictionary.cpp
Alien Dictionary.cpp
Alphabet Board Path.cpp
Alphabet Board Path.cpp
Angle Between Hands of a Clock.cpp
Angle Between Hands of a Clock.cpp
Armstrong Number.cpp
Armstrong Number.cpp
As Far from Land as Possible.cpp
As Far from Land as Possible.cpp
Assembly Line Scheduling.java
Assembly Line Scheduling.java
Backspace String Compare.cpp
Backspace String Compare.cpp
Balanced Binary Tree.cpp
Balanced Binary Tree.cpp
Battleships in a Board.cpp
Battleships in a Board.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.cpp
Best Time to Buy and Sell Stock.cpp
Binary Tree Cameras.cpp
Binary Tree Cameras.cpp
Binary Tree Coloring Game.cpp
Binary Tree Coloring Game.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 Paths.cpp
Binary Tree Paths.cpp
Binary Tree Pruning.cpp
Binary Tree Pruning.cpp
Bitwise AND of Numbers Range.cpp
Bitwise AND of Numbers Range.cpp
Boats to Save People.cpp
Boats to Save People.cpp
Burst Balloons.cpp
Burst Balloons.cpp
Car Pooling.cpp
Car Pooling.cpp
Check If Two Binary Trees Are Encoded.py
Check If Two Binary Trees Are Encoded.py
Climbing Stairs.cpp
Climbing Stairs.cpp
Clone Graph.cpp
Clone Graph.cpp
Clone Linked List with Next and Random Pointers.cpp
Clone Linked List with Next and Random Pointers.cpp
Coin Change.cpp
Coin Change.cpp
Combination Sum II.cpp
Combination Sum II.cpp
Combination Sum.cpp
Combination Sum.cpp
Combinations of a Phone Number.cpp
Combinations of a Phone Number.cpp
Connecting Cities With Minimum Cost.cpp
Connecting Cities With Minimum Cost.cpp
Construct Binary Search Tree from Preorder Traversal.cpp
Construct Binary Search Tree from Preorder Traversal.cpp
Construct Binary Tree from Inorder and Postorder Traversal.py
Construct Binary Tree from Inorder and Postorder Traversal.py
Construct Binary Tree from Preorder and Inorder Traversal.py
Construct Binary Tree from Preorder and Inorder Traversal.py
Container With Most Water.cpp
Container With Most Water.cpp
Contiguous Array.cpp
Contiguous Array.cpp
Convert a given Binary Tree to Doubly Linked List.cpp
Convert a given Binary Tree to Doubly Linked List.cpp
Corporate Flight Bookings.cpp
Corporate Flight Bookings.cpp
Count Primes.cpp
Count Primes.cpp
Count and Say.cpp
Count and Say.cpp
Counting Elements.cpp
Counting Elements.cpp
Course Schedule II.cpp
Course Schedule II.cpp
Course Schedule.cpp
Course Schedule.cpp
Daily Temperatures.cpp
Daily Temperatures.cpp
Day of the Week.py
Day of the Week.py
Decrease Elements To Make Array Zigzag.cpp
Decrease Elements To Make Array Zigzag.cpp
Defanging an IP Address.cpp
Defanging an IP Address.cpp
Delete Nodes And Return Forest.cpp
Delete Nodes And Return Forest.cpp
Design Browser History.cpp
Design Browser History.cpp
Detect Capital.cpp
Detect Capital.cpp
Diameter of Binary Tree.cpp
Diameter of Binary Tree.cpp
Distance Between Bus Stops.cpp
Distance Between Bus Stops.cpp
Distribute Candies to People.cpp
Distribute Candies to People.cpp
Divide Array in Sets of K Consecutive Numbers.cpp
Divide Array in Sets of K Consecutive Numbers.cpp
Divide Two Integers.cpp
Divide Two Integers.cpp
Edit Distance.cpp
Edit Distance.cpp
Fair Candy Swap.py
Fair Candy Swap.py
Fibonacci Number.cpp
Fibonacci Number.cpp
Find All Duplicates in an Array.cpp
Find All Duplicates in an Array.cpp
Find All Numbers Disappeared in an Array.cpp
Find All Numbers Disappeared in an Array.cpp
Find Closest Character.java
Find Closest Character.java
Find First and Last Position of Element in Sorted Array.cpp
Find First and Last Position of Element in Sorted Array.cpp
Find Minimum in Rotated Sorted Array II.cpp
Find Minimum in Rotated Sorted Array II.cpp
Find Minimum in Rotated Sorted Array.py
Find Minimum in Rotated Sorted Array.py
Find Mode in Binary Search Tree.cpp
Find Mode in Binary Search Tree.cpp
Find Peak Element.cpp
Find Peak Element.cpp
Find Pivot Index.cpp
Find Pivot Index.cpp
Find Words That Can Be Formed by Characters.cpp
Find Words That Can Be Formed by Characters.cpp
Find the Duplicate Number.py
Find the Duplicate Number.py
First Missing Positive.cpp
First Missing Positive.cpp
First Unique Character in a String.cpp
First Unique Character in a String.cpp
Flatten Binary Tree to Linked List.cpp
Flatten Binary Tree to Linked List.cpp
Friend Circles.cpp
Friend Circles.cpp
Generate Parentheses.cpp
Generate Parentheses.cpp
Grid Illumination.cpp
Grid Illumination.cpp
Group Anagrams.cpp
Group Anagrams.cpp
Groups of Special-Equivalent Strings.cpp
Groups of Special-Equivalent Strings.cpp
HTML Entity Parser.cpp
HTML Entity Parser.cpp
Hamming Distance.cpp
Hamming Distance.cpp
Happy Number.cpp
Happy Number.cpp
House Robber.cpp
House Robber.cpp
Implement strStr().cpp
Implement strStr().cpp
Integer to Roman.cpp
Integer to Roman.cpp
Is Subsequence.cpp
Is Subsequence.cpp
Jump Game IV.cpp
Jump Game IV.cpp
Jump Game.cpp
Jump Game.cpp
K Closest Points.cpp
K Closest Points.cpp
K-diff Pairs in an Array.cpp
K-diff Pairs in an Array.cpp
Kth Largest Element in an Array.cpp
Kth Largest Element in an Array.cpp
Kth Largest Item in Binary Tree.py
Kth Largest Item in Binary Tree.py
LRU Cache.cpp
LRU Cache.cpp
Largest 1-Bordered Square.cpp
Largest 1-Bordered Square.cpp
Largest Number.cpp
Largest Number.cpp
Largest Rectangle in Histogram.cpp
Largest Rectangle in Histogram.cpp
Largest Unique Number.cpp
Largest Unique Number.cpp
View all files
Repository files navigation
README
More
items
LeetCode-Solutions
My Solutions to LeetCode Problems
TODO: Categorize problems by difficulty
About
👨💻 Solutions to interesting LeetCode problems
Resources
Readme
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.