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 }}
SimonXiangD
/
Leetcode-Solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
302 Commits
302 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1. Two Sum.md
1. Two Sum.md
10. Regular Expression Matching.md
10. Regular Expression Matching.md
100. Same Tree.md
100. Same Tree.md
1002. Find Common Characters .md
1002. Find Common Characters .md
1007. Minimum Domino Rotations For Equal Row .md
1007. Minimum Domino Rotations For Equal Row .md
101. Symmetric Tree.md
101. Symmetric Tree.md
1010. Pairs of Songs With Total Durations Divisible by 60.md
1010. Pairs of Songs With Total Durations Divisible by 60.md
1011. Capacity To Ship Packages Within D Days .md
1011. Capacity To Ship Packages Within D Days .md
102. Binary Tree Level Order Traversal.md
102. Binary Tree Level Order Traversal.md
1020. Number of Enclaves.md
1020. Number of Enclaves.md
1021. Remove Outermost Parentheses.md
1021. Remove Outermost Parentheses.md
1024. Video Stitching .md
1024. Video Stitching .md
1025. Divisor Game.md
1025. Divisor Game.md
1026. Maximum Difference Between Node and Ancestor .md
1026. Maximum Difference Between Node and Ancestor .md
1029. Two City Scheduling.md
1029. Two City Scheduling.md
103. Binary Tree Zigzag Level Order Traversal.md
103. Binary Tree Zigzag Level Order Traversal.md
1032. Stream of Characters.md
1032. Stream of Characters.md
104. Maximum Depth of Binary Tree.md
104. Maximum Depth of Binary Tree.md
1041. Robot Bounded In Circle .md
1041. Robot Bounded In Circle .md
1044. Longest Duplicate Substring.md
1044. Longest Duplicate Substring.md
1048. Longest String Chain .md
1048. Longest String Chain .md
105. Construct Binary Tree from Preorder and Inorder Traversal.md
105. Construct Binary Tree from Preorder and Inorder Traversal.md
1051. Height Checker.md
1051. Height Checker.md
1055. Shortest Way to Form String.md
1055. Shortest Way to Form String.md
106. Construct Binary Tree from Inorder and Postorder Traversal.md
106. Construct Binary Tree from Inorder and Postorder Traversal.md
1060. Missing Element in Sorted Array.md
1060. Missing Element in Sorted Array.md
1062. Longest Repeating Substring.md
1062. Longest Repeating Substring.md
1071. Greatest Common Divisor of Strings .md
1071. Greatest Common Divisor of Strings .md
108. Convert Sorted Array to Binary Search Tree.md
108. Convert Sorted Array to Binary Search Tree.md
1080. Insufficient Nodes in Root to Leaf Paths.md
1080. Insufficient Nodes in Root to Leaf Paths.md
1081. Smallest Subsequence of Distinct Characters .md
1081. Smallest Subsequence of Distinct Characters .md
1091. Shortest Path in Binary Matrix.md
1091. Shortest Path in Binary Matrix.md
1095. Find in Mountain Array.md
1095. Find in Mountain Array.md
11. Container With Most Water.md
11. Container With Most Water.md
1101. The Earliest Moment When Everyone Become Friends .md
1101. The Earliest Moment When Everyone Become Friends .md
1102. Path With Maximum Minimum Value.md
1102. Path With Maximum Minimum Value.md
1110. Delete Nodes And Return Forest.md
1110. Delete Nodes And Return Forest.md
112. Path Sum.md
112. Path Sum.md
1120. Maximum Average Subtree.md
1120. Maximum Average Subtree.md
1122. Relative Sort Array .md
1122. Relative Sort Array .md
1123. Lowest Common Ancestor of Deepest Leaves.md
1123. Lowest Common Ancestor of Deepest Leaves.md
1136. Parallel Courses .md
1136. Parallel Courses .md
1137. N-th Tribonacci Number .md
1137. N-th Tribonacci Number .md
114. Flatten Binary Tree to Linked List.md
114. Flatten Binary Tree to Linked List.md
1143. Longest Common Subsequence.md
1143. Longest Common Subsequence.md
1146. Snapshot Array.md
1146. Snapshot Array.md
115. Distinct Subsequences.md
115. Distinct Subsequences.md
1151. Minimum Swaps to Group All 1's Together.md
1151. Minimum Swaps to Group All 1's Together.md
1152. Analyze User Website Visit Pattern.md
1152. Analyze User Website Visit Pattern.md
1153. String Transforms Into Another String .md
1153. String Transforms Into Another String .md
1155. Number of Dice Rolls With Target Sum .md
1155. Number of Dice Rolls With Target Sum .md
1160. Find Words That Can Be Formed by Characters.md
1160. Find Words That Can Be Formed by Characters.md
1161. Maximum Level Sum of a Binary Tree .md
1161. Maximum Level Sum of a Binary Tree .md
1167. Minimum Cost to Connect Sticks.md
1167. Minimum Cost to Connect Sticks.md
1169. Invalid Transactions.md
1169. Invalid Transactions.md
117. Populating Next Right Pointers in Each Node II.md
117. Populating Next Right Pointers in Each Node II.md
118. Pascal's Triangle.md
118. Pascal's Triangle.md
119. Pascal's Triangle II.md
119. Pascal's Triangle II.md
1191. K-Concatenation Maximum Sum.md
1191. K-Concatenation Maximum Sum.md
1197. Minimum Knight Moves .md
1197. Minimum Knight Moves .md
12. Integer to Roman.md
12. Integer to Roman.md
120. Triangle.md
120. Triangle.md
1202. Smallest String With Swaps .md
1202. Smallest String With Swaps .md
1207. Unique Number of Occurrences .md
1207. Unique Number of Occurrences .md
1209. Remove All Adjacent Duplicates in String II .md
1209. Remove All Adjacent Duplicates in String II .md
121. Best Time to Buy and Sell Stock.md
121. Best Time to Buy and Sell Stock.md
1216. Valid Palindrome III .md
1216. Valid Palindrome III .md
122. Best Time to Buy and Sell Stock II.md
122. Best Time to Buy and Sell Stock II.md
1221. Split a String in Balanced Strings .md
1221. Split a String in Balanced Strings .md
123. Best Time to Buy and Sell Stock III.md
123. Best Time to Buy and Sell Stock III.md
1235. Maximum Profit in Job Scheduling.md
1235. Maximum Profit in Job Scheduling.md
1239. Maximum Length of a Concatenated String with Unique Characters .md
1239. Maximum Length of a Concatenated String with Unique Characters .md
124. Binary Tree Maximum Path Sum.md
124. Binary Tree Maximum Path Sum.md
1249. Minimum Remove to Make Valid Parentheses .md
1249. Minimum Remove to Make Valid Parentheses .md
125. Valid Palindrome.md
125. Valid Palindrome.md
1254. Number of Closed Islands .md
1254. Number of Closed Islands .md
126. Word Ladder II.md
126. Word Ladder II.md
1266. Minimum Time Visiting All Points.md
1266. Minimum Time Visiting All Points.md
1268. Search Suggestions System.md
1268. Search Suggestions System.md
127. Word Ladder .md
127. Word Ladder .md
1275. Find Winner on a Tic Tac Toe Game .md
1275. Find Winner on a Tic Tac Toe Game .md
128. Longest Consecutive Sequence.md
128. Longest Consecutive Sequence.md
1282. Group the People Given the Group Size They Belong To.md
1282. Group the People Given the Group Size They Belong To.md
1287. Element Appearing More Than 25% In Sorted Array.md
1287. Element Appearing More Than 25% In Sorted Array.md
129. Sum Root to Leaf Numbers.md
129. Sum Root to Leaf Numbers.md
1293. Shortest Path in a Grid with Obstacles Elimination .md
1293. Shortest Path in a Grid with Obstacles Elimination .md
13. Roman to Integer.md
13. Roman to Integer.md
130. Surrounded Regions.md
130. Surrounded Regions.md
1304. Find N Unique Integers Sum up to Zero .md
1304. Find N Unique Integers Sum up to Zero .md
131. Palindrome Partitioning.md
131. Palindrome Partitioning.md
1318. Minimum Flips to Make a OR b Equal to c.md
1318. Minimum Flips to Make a OR b Equal to c.md
132. Palindrome Partitioning II.md
132. Palindrome Partitioning II.md
1326. Minimum Number of Taps to Open to Water a Garden.md
1326. Minimum Number of Taps to Open to Water a Garden.md
1329. Sort the Matrix Diagonally .md
1329. Sort the Matrix Diagonally .md
133. Clone Graph.md
133. Clone Graph.md
1331. Rank Transform of an Array.md
1331. Rank Transform of an Array.md
134. Gas Station.md
134. Gas Station.md
1344. Angle Between Hands of a Clock .md
1344. Angle Between Hands of a Clock .md
1345. Jump Game IV .md
1345. Jump Game IV .md
135. Candy.md
135. Candy.md
View all files
Repository files navigation
README
More
items
Leetcode-Solutions
My solutions to leetcode problems
About
My solutions to leetcode problems
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
You can’t perform that action at this time.