Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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
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
2
(
2
)
You must be signed in to star a repository
About
My solutions to leetcode problems
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
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.