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 }}
tzyian
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
37 Commits
37 Commits
Folders and files
Name
Name
Last commit message
Last commit date
algos
algos
datas
datas
submissions
submissions
.clang-format
.clang-format
.clangd
.clangd
.gitignore
.gitignore
1002.find-common-characters.cpp
1002.find-common-characters.cpp
1014.best-sightseeing-pair.py
1014.best-sightseeing-pair.py
1035.uncrossed-lines.cpp
1035.uncrossed-lines.cpp
1035.uncrossed-lines.py
1035.uncrossed-lines.py
1039.minimum-score-triangulation-of-polygon.py
1039.minimum-score-triangulation-of-polygon.py
1049.last-stone-weight-ii.py
1049.last-stone-weight-ii.py
1051.height-checker.cpp
1051.height-checker.cpp
1061.lexicographically-smallest-equivalent-string.cpp
1061.lexicographically-smallest-equivalent-string.cpp
1061.lexicographically-smallest-equivalent-string.py
1061.lexicographically-smallest-equivalent-string.py
1079.letter-tile-possibilities.py
1079.letter-tile-possibilities.py
108.convert-sorted-array-to-binary-search-tree.py
108.convert-sorted-array-to-binary-search-tree.py
1092.shortest-common-supersequence.cpp
1092.shortest-common-supersequence.cpp
1092.shortest-common-supersequence.go
1092.shortest-common-supersequence.go
1092.shortest-common-supersequence.py
1092.shortest-common-supersequence.py
1092.shortest-common-supersequence.wrong.py
1092.shortest-common-supersequence.wrong.py
11.container-with-most-water.java
11.container-with-most-water.java
11.container-with-most-water.py
11.container-with-most-water.py
1110.delete-nodes-and-return-forest.java
1110.delete-nodes-and-return-forest.java
1110.delete-nodes-and-return-forest.py
1110.delete-nodes-and-return-forest.py
112.path-sum.py
112.path-sum.py
1122.relative-sort-array.cpp
1122.relative-sort-array.cpp
1123.lowest-common-ancestor-of-deepest-leaves.py
1123.lowest-common-ancestor-of-deepest-leaves.py
113.path-sum-ii.py
113.path-sum-ii.py
1143.longest-common-subsequence.cpp
1143.longest-common-subsequence.cpp
1143.longest-common-subsequence.java
1143.longest-common-subsequence.java
1143.longest-common-subsequence.py
1143.longest-common-subsequence.py
1146.snapshot-array.cpp
1146.snapshot-array.cpp
1146.snapshot-array.py
1146.snapshot-array.py
1190.reverse-substrings-between-each-pair-of-parentheses.py
1190.reverse-substrings-between-each-pair-of-parentheses.py
121.best-time-to-buy-and-sell-stock.cpp
121.best-time-to-buy-and-sell-stock.cpp
121.best-time-to-buy-and-sell-stock.java
121.best-time-to-buy-and-sell-stock.java
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
1219.path-with-maximum-gold.cpp
1219.path-with-maximum-gold.cpp
122.best-time-to-buy-and-sell-stock-ii.py
122.best-time-to-buy-and-sell-stock-ii.py
124.binary-tree-maximum-path-sum.py
124.binary-tree-maximum-path-sum.py
1261.find-elements-in-a-contaminated-binary-tree.py
1261.find-elements-in-a-contaminated-binary-tree.py
1262.greatest-sum-divisible-by-three.py
1262.greatest-sum-divisible-by-three.py
1267.count-servers-that-communicate.py
1267.count-servers-that-communicate.py
128.longest-consecutive-sequence.java
128.longest-consecutive-sequence.java
128.longest-consecutive-sequence.py
128.longest-consecutive-sequence.py
1290.convert-binary-number-in-a-linked-list-to-integer.java
1290.convert-binary-number-in-a-linked-list-to-integer.java
1298.maximum-candies-you-can-get-from-boxes.py
1298.maximum-candies-you-can-get-from-boxes.py
130.surrounded-regions.py
130.surrounded-regions.py
1304.find-n-unique-integers-sum-up-to-zero.py
1304.find-n-unique-integers-sum-up-to-zero.py
1306.jump-game-iii.py
1306.jump-game-iii.py
131.palindrome-partitioning.py
131.palindrome-partitioning.py
1310.xor-queries-of-a-subarray.cpp
1310.xor-queries-of-a-subarray.cpp
1317.convert-integer-to-the-sum-of-two-no-zero-integers.py
1317.convert-integer-to-the-sum-of-two-no-zero-integers.py
1325.delete-leaves-with-a-given-value.cpp
1325.delete-leaves-with-a-given-value.cpp
1326.minimum-number-of-taps-to-open-to-water-a-garden.py
1326.minimum-number-of-taps-to-open-to-water-a-garden.py
133.clone-graph.py
133.clone-graph.py
1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.py
1334.find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance.py
134.gas-station.py
134.gas-station.py
1345.jump-game-iv.py
1345.jump-game-iv.py
135.candy.java
135.candy.java
135.candy.py
135.candy.py
1352.product-of-the-last-k-numbers.py
1352.product-of-the-last-k-numbers.py
1368.minimum-cost-to-make-at-least-one-valid-path-in-a-grid.go
1368.minimum-cost-to-make-at-least-one-valid-path-in-a-grid.go
1368.minimum-cost-to-make-at-least-one-valid-path-in-a-grid.py
1368.minimum-cost-to-make-at-least-one-valid-path-in-a-grid.py
1371.find-the-longest-substring-containing-vowels-in-even-counts.cpp
1371.find-the-longest-substring-containing-vowels-in-even-counts.cpp
1380.lucky-numbers-in-a-matrix.py
1380.lucky-numbers-in-a-matrix.py
1391.check-if-there-is-a-valid-path-in-a-grid.cpp
1391.check-if-there-is-a-valid-path-in-a-grid.cpp
1408.string-matching-in-an-array.py
1408.string-matching-in-an-array.py
142.linked-list-cycle-ii.py
142.linked-list-cycle-ii.py
1422.maximum-score-after-splitting-a-string.cpp
1422.maximum-score-after-splitting-a-string.cpp
1422.maximum-score-after-splitting-a-string.py
1422.maximum-score-after-splitting-a-string.py
1432.max-difference-you-can-get-from-changing-an-integer.cpp
1432.max-difference-you-can-get-from-changing-an-integer.cpp
1437.check-if-all-1s-are-at-least-length-k-places-away.py
1437.check-if-all-1s-are-at-least-length-k-places-away.py
145.binary-tree-postorder-traversal.java
145.binary-tree-postorder-traversal.java
146.lru-cache.py
146.lru-cache.py
1482.minimum-number-of-days-to-make-m-bouquets.py
1482.minimum-number-of-days-to-make-m-bouquets.py
1488.avoid-flood-in-the-city.py
1488.avoid-flood-in-the-city.py
15.3sum.py
15.3sum.py
150.evaluate-reverse-polish-notation.py
150.evaluate-reverse-polish-notation.py
1509.minimum-difference-between-largest-and-smallest-value-in-three-moves.cpp
1509.minimum-difference-between-largest-and-smallest-value-in-three-moves.cpp
1518.water-bottles.go
1518.water-bottles.go
152.maximum-product-subarray.py
152.maximum-product-subarray.py
1530.number-of-good-leaf-nodes-pairs.py
1530.number-of-good-leaf-nodes-pairs.py
1550.three-consecutive-odds.cpp
1550.three-consecutive-odds.cpp
1559.detect-cycles-in-2d-grid.cpp
1559.detect-cycles-in-2d-grid.cpp
1584.min-cost-to-connect-all-points.py
1584.min-cost-to-connect-all-points.py
1598.crawler-log-folder.go
1598.crawler-log-folder.go
160.intersection-of-two-linked-lists.py
160.intersection-of-two-linked-lists.py
1605.find-valid-matrix-given-row-and-column-sums.cpp
1605.find-valid-matrix-given-row-and-column-sums.cpp
1605.find-valid-matrix-given-row-and-column-sums.go
1605.find-valid-matrix-given-row-and-column-sums.go
165.compare-version-numbers.py
165.compare-version-numbers.py
1665.minimum-initial-energy-to-finish-tasks.py
1665.minimum-initial-energy-to-finish-tasks.py
1696.jump-game-vi.cpp
1696.jump-game-vi.cpp
1696.jump-game-vi.py
1696.jump-game-vi.py
1701.average-waiting-time.java
1701.average-waiting-time.java
1710.maximum-units-on-a-truck.py
1710.maximum-units-on-a-truck.py
1716.calculate-money-in-leetcode-bank.py
1716.calculate-money-in-leetcode-bank.py
1717.maximum-score-from-removing-substrings.java
1717.maximum-score-from-removing-substrings.java
View all files
Repository files navigation
README
More
items
Leetcode
Leetcode submissions and some algorithms/patterns
About
No description, website, or topics provided.
Resources
Readme
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.