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 }}
shineyr
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
12
Star
13
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
Latest commit
History
425 Commits
425 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100_Same Tree
100_Same Tree
101_Sysmetric Tree
101_Sysmetric Tree
102_Binary Tree Level Order Traversal
102_Binary Tree Level Order Traversal
103_Binary Tree Zigzag Level Order Traversal
103_Binary Tree Zigzag Level Order Traversal
104_Maximum Depth of Binary Tree
104_Maximum Depth of Binary Tree
105_Construct Binary Tree from Preorder and Inorder Traversal
105_Construct Binary Tree from Preorder and Inorder Traversal
106_Construct Binary Tree from Inorder and Postorder Traversal
106_Construct Binary Tree from Inorder and Postorder Traversal
107_Binary Tree Level Order Traversal II
107_Binary Tree Level Order Traversal II
108_Convert Sorted Array to Binary Search Tree
108_Convert Sorted Array to Binary Search Tree
109_Convert Sorted List to Binary Search Tree
109_Convert Sorted List to Binary Search Tree
10_Regular Expression Matching
10_Regular Expression Matching
110_Balanced Binary Tree
110_Balanced Binary Tree
111_Minimum Depth of Binary Tree
111_Minimum Depth of Binary Tree
112_Path Sum
112_Path Sum
113_Path Sum II
113_Path Sum II
114_Flatten Binary Tree to Linked List
114_Flatten Binary Tree to Linked List
115. Distinct Subsequences
115. Distinct Subsequences
116_Populating Next Right Pointers in Each Node
116_Populating Next Right Pointers in Each Node
117_Populating Next Right Pointers in Each Node II
117_Populating Next Right Pointers in Each Node II
118_Pascal's Triangle
118_Pascal's Triangle
119_Pascal's Triangle II
119_Pascal's Triangle II
11_Container With Most Water
11_Container With Most Water
120_Triangle
120_Triangle
121_Best Time to Buy and Sell Stock
121_Best Time to Buy and Sell Stock
122_Best Time to Buy and Sell Stock II
122_Best Time to Buy and Sell Stock II
123_Best Time to Buy and Sell Stock III
123_Best Time to Buy and Sell Stock III
125_Valid Palindrome
125_Valid Palindrome
128_Longest Consecutive Sequencs
128_Longest Consecutive Sequencs
129_Sum Root to Leaf Numbers
129_Sum Root to Leaf Numbers
131. Palindrome Partitioning
131. Palindrome Partitioning
134_Gas Station
134_Gas Station
136_Single Number
136_Single Number
137_Single Number II
137_Single Number II
138_Copy List with Random Pointer
138_Copy List with Random Pointer
141_Linked List Cycle
141_Linked List Cycle
142_Linked List Cycle II
142_Linked List Cycle II
143_Reorder List
143_Reorder List
144_Binary Tree Preorder Traversal
144_Binary Tree Preorder Traversal
145_Binary Tree Postorder Traversal
145_Binary Tree Postorder Traversal
147_Insertion Sort List
147_Insertion Sort List
149_Max Points on a Line
149_Max Points on a Line
150_Evaluate Reverse Polish Notation
150_Evaluate Reverse Polish Notation
151_Reverse Words in a String
151_Reverse Words in a String
152_Maximum Product Subarray
152_Maximum Product Subarray
153_Find Minimum in Rotated Sorted Array
153_Find Minimum in Rotated Sorted Array
154_Find Minimum in Rotated Sorted Array II
154_Find Minimum in Rotated Sorted Array II
155_Min Stack
155_Min Stack
160_Intersection of Two Linked Lists
160_Intersection of Two Linked Lists
162_Find Peak Element
162_Find Peak Element
164_Maximum Gap
164_Maximum Gap
165_Compare Version Numbers
165_Compare Version Numbers
166_Fraction to Recurring Decimal
166_Fraction to Recurring Decimal
168_Excel Sheet Column Title
168_Excel Sheet Column Title
172_Factorial Trailing Zeroes
172_Factorial Trailing Zeroes
173_Binary Search Tree Iterator
173_Binary Search Tree Iterator
189_Rotate Array
189_Rotate Array
190_Reverse Bits
190_Reverse Bits
200_Number of Islands
200_Number of Islands
201_Bitwise AND of Numbers Ranage
201_Bitwise AND of Numbers Ranage
202_Happy Number
202_Happy Number
203_Remove LinkedList Elements
203_Remove LinkedList Elements
204_Count Primes
204_Count Primes
205_Isomorphic Strings
205_Isomorphic Strings
206_Reverse Linked List
206_Reverse Linked List
215_Kth Largest Element in an Array
215_Kth Largest Element in an Array
217_Contains Duplicate
217_Contains Duplicate
219_Contains Duplicate II
219_Contains Duplicate II
220_Contains Duplicate III
220_Contains Duplicate III
224_Basic Calculator
224_Basic Calculator
225_Implement Stack using Queues
225_Implement Stack using Queues
226_Invert Binary Tree
226_Invert Binary Tree
228_Summary Ranges
228_Summary Ranges
22_Generate Parentheses
22_Generate Parentheses
232_Implement Queue using Stacks
232_Implement Queue using Stacks
234_Palindrome Linked List
234_Palindrome Linked List
238_Product of Array Except Self
238_Product of Array Except Self
23_Merge K sorted Lists
23_Merge K sorted Lists
242_Valid Anagram
242_Valid Anagram
258_Add Digits
258_Add Digits
260_Single Number III
260_Single Number III
268_Missing Number
268_Missing Number
274_H-index
274_H-index
275_H-Index II
275_H-Index II
278_First Bad Version
278_First Bad Version
279_Perfect Squares
279_Perfect Squares
282_Peeking Iterator
282_Peeking Iterator
283_Move Zeroes
283_Move Zeroes
287_Find The Duplicate Number
287_Find The Duplicate Number
289_Game of Life
289_Game of Life
290_Word Pattern
290_Word Pattern
292_Nim Game
292_Nim Game
303_Range Sum Query
303_Range Sum Query
304_Range Sum Query 2D - Immutable
304_Range Sum Query 2D - Immutable
306_Additive Number
306_Additive Number
307_Range Sum Query
307_Range Sum Query
32_Longest Valid Parentheses
32_Longest Valid Parentheses
37_Sudoku Solver
37_Sudoku Solver
39_Combination Sum
39_Combination Sum
40_Combination Sum II
40_Combination Sum II
42_Trapping Rain Water
42_Trapping Rain Water
View all files
Repository files navigation
README
More
items
LeetCode
About
leetcode.com/problemset/all/
Topics
leetcode
Resources
Readme
Activity
Stars
13
stars
Watchers
2
watching
Forks
12
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.