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
Developer articles
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 }}
A-stick-bug
Leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Leetcode
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
moved files over from old leetcode repository
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
252 Commits
252 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitattributes
.gitattributes
.gitignore
.gitignore
1. Two Sum (better).py
1. Two Sum (better).py
1. Two Sum.py
1. Two Sum.py
100. Same Tree.py
100. Same Tree.py
1020. Number of Enclaves.py
1020. Number of Enclaves.py
1027. Longest Arithmetic Subsequence.py
1027. Longest Arithmetic Subsequence.py
1035. Uncrossed Lines.py
1035. Uncrossed Lines.py
104. Maximum Depth of Binary Tree.py
104. Maximum Depth of Binary Tree.py
1046. Last Stone Weight.py
1046. Last Stone Weight.py
107. Binary Tree Level Order Traversal II.py
107. Binary Tree Level Order Traversal II.py
1086. High Five.py
1086. High Five.py
1091. Shortest Path in Binary Matrix.py
1091. Shortest Path in Binary Matrix.py
11. Container With Most Water (Linear).py
11. Container With Most Water (Linear).py
11. Container With Most Water.py
11. Container With Most Water.py
1100. Find K-Length Substrings With No Repeated Characters.py
1100. Find K-Length Substrings With No Repeated Characters.py
1137. N-th Tribonacci Number.py
1137. N-th Tribonacci Number.py
1143. Longest Common Subsequence.py
1143. Longest Common Subsequence.py
115. Distinct Subsequences.py
115. Distinct Subsequences.py
1150. Check If a Number Is Majority Element in a Sorted Array.py
1150. Check If a Number Is Majority Element in a Sorted Array.py
1162. As Far from Land as Possible.py
1162. As Far from Land as Possible.py
1167. Minimum Cost to Connect Sticks.py
1167. Minimum Cost to Connect Sticks.py
1168. Optimize Water Distribution in a Village.py
1168. Optimize Water Distribution in a Village.py
118. Pascal's Triangle.py
118. Pascal's Triangle.py
118. Pascal's Triangle.rkt
118. Pascal's Triangle.rkt
119. Pascal's Triangle II.py
119. Pascal's Triangle II.py
1192. Critical Connections in a Network.py
1192. Critical Connections in a Network.py
1197. Minimum Knight Moves.py
1197. Minimum Knight Moves.py
120. Triangle.py
120. Triangle.py
121. Best Time to Buy and Sell Stock.py
121. Best Time to Buy and Sell Stock.py
1218. Longest Arithmetic Subsequence of Given Difference.py
1218. Longest Arithmetic Subsequence of Given Difference.py
122. Best Time to Buy and Sell Stock II.py
122. Best Time to Buy and Sell Stock II.py
1220. Count Vowels Permutation.py
1220. Count Vowels Permutation.py
1227. Airplane Seat Assignment Probability.py
1227. Airplane Seat Assignment Probability.py
1229. Meeting Scheduler.py
1229. Meeting Scheduler.py
123. Best Time to Buy and Sell Stock III.py
123. Best Time to Buy and Sell Stock III.py
1230. Toss Strange Coins.py
1230. Toss Strange Coins.py
1235. Maximum Profit in Job Scheduling.py
1235. Maximum Profit in Job Scheduling.py
124. Binary Tree Maximum Path Sum.py
124. Binary Tree Maximum Path Sum.py
125. Valid Palindrome.py
125. Valid Palindrome.py
1254. Number of Closed Islands.py
1254. Number of Closed Islands.py
127. Word Ladder.py
127. Word Ladder.py
1274. Number of Ships in a Rectangle.py
1274. Number of Ships in a Rectangle.py
13. Roman to Integer.py
13. Roman to Integer.py
130. Surrounded Regions.py
130. Surrounded Regions.py
1312. Minimum Insertion Steps to Make a String Palindrome.py
1312. Minimum Insertion Steps to Make a String Palindrome.py
133. Clone Graph.py
133. Clone Graph.py
1337. The K Weakest Rows in a Matrix.py
1337. The K Weakest Rows in a Matrix.py
139. Word Break.py
139. Word Break.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
1401. Circle and Rectangle Overlapping.py
1401. Circle and Rectangle Overlapping.py
1404. Number of Steps to Reduce a Number in Binary Representation to One.py
1404. Number of Steps to Reduce a Number in Binary Representation to One.py
1427. Perform String Shifts.py
1427. Perform String Shifts.py
146. LRU Cache.py
146. LRU Cache.py
1462. Course Schedule IV.py
1462. Course Schedule IV.py
1483. Kth Ancestor of a Tree Node.py
1483. Kth Ancestor of a Tree Node.py
149. Max Points on a Line.py
149. Max Points on a Line.py
1491. Average Salary Excluding Min and Max.py
1491. Average Salary Excluding Min and Max.py
15. 3Sum.py
15. 3Sum.py
150. Evaluate Reverse Polish Notation.py
150. Evaluate Reverse Polish Notation.py
1515. Best Position for a Service Centre.py
1515. Best Position for a Service Centre.py
1523. Count Odd Numbers in an Interval Range.py
1523. Count Odd Numbers in an Interval Range.py
1526. Minimum Number of Increments on Subarrays to Form a Target Array.py
1526. Minimum Number of Increments on Subarrays to Form a Target Array.py
155. Min Stack.py
155. Min Stack.py
1568. Minimum Number of Days to Disconnect Island.py
1568. Minimum Number of Days to Disconnect Island.py
1572. Matrix Diagonal Sum.py
1572. Matrix Diagonal Sum.py
159. Longest Substring with At Most Two Distinct Characters.py
159. Longest Substring with At Most Two Distinct Characters.py
161. One Edit Distance.py
161. One Edit Distance.py
1626. Best Team With No Conflicts.py
1626. Best Team With No Conflicts.py
1631. Path With Minimum Effort.py
1631. Path With Minimum Effort.py
1654. Minimum Jumps to Reach Home.py
1654. Minimum Jumps to Reach Home.py
167. Two Sum II - Input Array Is Sorted.py
167. Two Sum II - Input Array Is Sorted.py
1672. Richest Customer Wealth.py
1672. Richest Customer Wealth.py
17. Letter Combinations of a Phone Number.py
17. Letter Combinations of a Phone Number.py
1804. Implement Trie II (Prefix Tree).py
1804. Implement Trie II (Prefix Tree).py
1816. Truncate Sentence.py
1816. Truncate Sentence.py
1822. Sign of the Product of an Array.py
1822. Sign of the Product of an Array.py
1844. Replace All Digits with Characters.py
1844. Replace All Digits with Characters.py
1866. Number of Ways to Rearrange Sticks With K Sticks Visible.py
1866. Number of Ways to Rearrange Sticks With K Sticks Visible.py
187. Repeated DNA Sequences.py
187. Repeated DNA Sequences.py
188. Best Time to Buy and Sell Stock IV.py
188. Best Time to Buy and Sell Stock IV.py
1884. Egg Drop With 2 Eggs and N Floors.py
1884. Egg Drop With 2 Eggs and N Floors.py
189. Rotate Array.py
189. Rotate Array.py
19. Remove Nth Node From End of List.c
19. Remove Nth Node From End of List.c
1905. Count Sub Islands.py
1905. Count Sub Islands.py
1944. Number of Visible People in a Queue.py
1944. Number of Visible People in a Queue.py
1964. Find the Longest Valid Obstacle Course at Each Position.py
1964. Find the Longest Valid Obstacle Course at Each Position.py
198. House Robber.py
198. House Robber.py
2. Add Two Numbers.c
2. Add Two Numbers.c
20. Valid Parentheses.py
20. Valid Parentheses.py
200. Number of Islands.py
200. Number of Islands.py
2027. Minimum Moves to Convert String.py
2027. Minimum Moves to Convert String.py
204. Count Primes.py
204. Count Primes.py
205. Isomorphic Strings.py
205. Isomorphic Strings.py
206. Reverse Linked List.py
206. Reverse Linked List.py
207. Course Schedule.py
207. Course Schedule.py
2070. Most Beautiful Item for Each Query.py
2070. Most Beautiful Item for Each Query.py
208. Implement Trie (Prefix Tree).py
208. Implement Trie (Prefix Tree).py
2080. Range Frequency Queries.py
2080. Range Frequency Queries.py
209. Minimum Size Subarray Sum.py
209. Minimum Size Subarray Sum.py
View all files
About
moved files over from old leetcode repository
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.