Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
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 }}
guocaoyi
/
leetcode-ts
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
7
Code
Issues
0
Pull requests
0
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
master
Breadcrumbs
leetcode-ts
/
leetcode
/
Copy path
Directory actions
More options
Directory actions
More options
Latest commit
History
History
master
Breadcrumbs
leetcode-ts
/
leetcode
/
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001.two-sum
0001.two-sum
0003.longest-substring-without-repeating-characters
0003.longest-substring-without-repeating-characters
0004.median-of-two-sorted-arrays
0004.median-of-two-sorted-arrays
0005.longest-palindromic-substring
0005.longest-palindromic-substring
0014.longest-common-prefix
0014.longest-common-prefix
0015.3sum
0015.3sum
0017.letter-combinations-of-a-phone-number
0017.letter-combinations-of-a-phone-number
0020.valid-parentheses
0020.valid-parentheses
0027.remove-element
0027.remove-element
0032.longest-valid-parentheses
0032.longest-valid-parentheses
0035.search-insert-position
0035.search-insert-position
0041.first-missing-positive
0041.first-missing-positive
0042.trapping-rain-water
0042.trapping-rain-water
0044.wildcard-matching
0044.wildcard-matching
0046.permutations
0046.permutations
0049.group-anagrams
0049.group-anagrams
0050.powx-n
0050.powx-n
0051.n-queens
0051.n-queens
0054.spiral-matrix
0054.spiral-matrix
0056.merge-intervals
0056.merge-intervals
0062.unique-paths
0062.unique-paths
0063.unique-paths-ii
0063.unique-paths-ii
0066.plus-one
0066.plus-one
0067.add-binary
0067.add-binary
0074.search-a-2d-matrix
0074.search-a-2d-matrix
0100.same-tree
0100.same-tree
0108.convert-sorted-array-to-binary-search-tree
0108.convert-sorted-array-to-binary-search-tree
0112.path-sum
0112.path-sum
0118.pascals-triangle
0118.pascals-triangle
0119.pascals-triangle-ii
0119.pascals-triangle-ii
0121.best-time-to-buy-and-sell-stock
0121.best-time-to-buy-and-sell-stock
0122.best-time-to-buy-and-sell-stock-ii
0122.best-time-to-buy-and-sell-stock-ii
0123.best-time-to-buy-and-sell-stock-iii
0123.best-time-to-buy-and-sell-stock-iii
0136.single-number
0136.single-number
0155.min-stack
0155.min-stack
0167.two-sum-ii-input-array-is-sorted
0167.two-sum-ii-input-array-is-sorted
0169.majority-element
0169.majority-element
0189.retate-array
0189.retate-array
0202.happy-number
0202.happy-number
0209.minimum-size-subarray-sum
0209.minimum-size-subarray-sum
0240.search-a-2d-matrix-ii
0240.search-a-2d-matrix-ii
0309.best-time-to-buy-and-sell-stock-with-cooldown
0309.best-time-to-buy-and-sell-stock-with-cooldown
0315.count-of-smaller-numbers-after-self
0315.count-of-smaller-numbers-after-self
0344.reverse-string
0344.reverse-string
0378.kth-smallest-element-in-a-sorted-matrix
0378.kth-smallest-element-in-a-sorted-matrix
0407.trapping-rain-water-ii
0407.trapping-rain-water-ii
0440.k-th-smallest-in-lexicographical-order
0440.k-th-smallest-in-lexicographical-order
0485.max-consecutive-ones
0485.max-consecutive-ones
0498.diagonal-traverse
0498.diagonal-traverse
0561.array-partition-i
0561.array-partition-i
0567.permutation-in-string
0567.permutation-in-string
0697.degree-of-an-array
0697.degree-of-an-array
0714.best-time-to-buy-and-sell-stock-with-transaction-fee
0714.best-time-to-buy-and-sell-stock-with-transaction-fee
0718.maximum-length-of-repeated-subarray
0718.maximum-length-of-repeated-subarray
0724.find-pivot-index
0724.find-pivot-index
0747.largest-number-at-least-twice-of-others
0747.largest-number-at-least-twice-of-others
1094.car-pooling
1094.car-pooling
1137.n-th-tribonacci-number
1137.n-th-tribonacci-number
View all files
You can’t perform that action at this time.