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 }}
viv500
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
1,100 Commits
1,100 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
101-symmetric-tree
101-symmetric-tree
1013-fibonacci-number
1013-fibonacci-number
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1028-interval-list-intersections
1028-interval-list-intersections
1036-rotting-oranges
1036-rotting-oranges
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1056-capacity-to-ship-packages-within-d-days
1073-number-of-enclaves
1073-number-of-enclaves
11-container-with-most-water
11-container-with-most-water
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
1117-as-far-from-land-as-possible
1117-as-far-from-land-as-possible
1168-duplicate-zeros
1168-duplicate-zeros
1171-shortest-path-in-binary-matrix
1171-shortest-path-in-binary-matrix
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
1210-mean-of-array-after-removing-some-elements
1210-mean-of-array-after-removing-some-elements
124-binary-tree-maximum-path-sum
124-binary-tree-maximum-path-sum
125-valid-palindrome
125-valid-palindrome
1250-longest-common-subsequence
1250-longest-common-subsequence
128-longest-consecutive-sequence
128-longest-consecutive-sequence
130-surrounded-regions
130-surrounded-regions
1319-unique-number-of-occurrences
1319-unique-number-of-occurrences
133-clone-graph
133-clone-graph
134-gas-station
134-gas-station
135-candy
135-candy
136-single-number
136-single-number
1380-number-of-closed-islands
1380-number-of-closed-islands
139-word-break
139-word-break
1397-search-suggestions-system
1397-search-suggestions-system
14-longest-common-prefix
14-longest-common-prefix
141-linked-list-cycle
141-linked-list-cycle
143-reorder-list
143-reorder-list
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1469-minimum-number-of-steps-to-make-two-strings-anagram
1469-minimum-number-of-steps-to-make-two-strings-anagram
15-3sum
15-3sum
151-reverse-words-in-a-string
151-reverse-words-in-a-string
152-maximum-product-subarray
152-maximum-product-subarray
1547-destination-city
1547-destination-city
1580-shuffle-the-array
1580-shuffle-the-array
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
1714-rearrange-spaces-between-words
1714-rearrange-spaces-between-words
1737-maximum-nesting-depth-of-the-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1786-count-the-number-of-consistent-strings
1786-count-the-number-of-consistent-strings
179-largest-number
179-largest-number
1813-maximum-erasure-value
1813-maximum-erasure-value
1817-calculate-money-in-leetcode-bank
1817-calculate-money-in-leetcode-bank
187-repeated-dna-sequences
187-repeated-dna-sequences
1888-find-nearest-point-that-has-the-same-x-or-y-coordinate
1888-find-nearest-point-that-has-the-same-x-or-y-coordinate
1894-merge-strings-alternately
1894-merge-strings-alternately
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
1915-check-if-one-string-swap-can-make-strings-equal
1915-check-if-one-string-swap-can-make-strings-equal
1962-single-threaded-cpu
1962-single-threaded-cpu
198-house-robber
198-house-robber
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
2026-merge-triplets-to-form-target-triplet
2026-merge-triplets-to-form-target-triplet
2035-count-sub-islands
2035-count-sub-islands
205-isomorphic-strings
205-isomorphic-strings
206-reverse-linked-list
206-reverse-linked-list
207-course-schedule
207-course-schedule
208-implement-trie-prefix-tree
208-implement-trie-prefix-tree
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
21-merge-two-sorted-lists
21-merge-two-sorted-lists
210-course-schedule-ii
210-course-schedule-ii
211-design-add-and-search-words-data-structure
211-design-add-and-search-words-data-structure
213-house-robber-ii
213-house-robber-ii
2132-convert-1d-array-into-2d-array
2132-convert-1d-array-into-2d-array
2169-simple-bank-system
2169-simple-bank-system
217-contains-duplicate
217-contains-duplicate
2216-delete-the-middle-node-of-a-linked-list
2216-delete-the-middle-node-of-a-linked-list
224-basic-calculator
224-basic-calculator
2254-check-if-every-row-and-column-contains-all-numbers
2254-check-if-every-row-and-column-contains-all-numbers
226-invert-binary-tree
226-invert-binary-tree
227-basic-calculator-ii
227-basic-calculator-ii
230-kth-smallest-element-in-a-bst
230-kth-smallest-element-in-a-bst
231-power-of-two
231-power-of-two
232-implement-queue-using-stacks
232-implement-queue-using-stacks
234-palindrome-linked-list
234-palindrome-linked-list
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
238-product-of-array-except-self
238-product-of-array-except-self
24-swap-nodes-in-pairs
24-swap-nodes-in-pairs
242-valid-anagram
242-valid-anagram
257-binary-tree-paths
257-binary-tree-paths
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
268-missing-number
268-missing-number
274-h-index
274-h-index
278-first-bad-version
278-first-bad-version
283-move-zeroes
283-move-zeroes
289-game-of-life
289-game-of-life
290-word-pattern
290-word-pattern
2977-check-if-a-string-is-an-acronym-of-words
2977-check-if-a-string-is-an-acronym-of-words
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
300-longest-increasing-subsequence
300-longest-increasing-subsequence
322-coin-change
322-coin-change
328-odd-even-linked-list
328-odd-even-linked-list
342-power-of-four
342-power-of-four
View all files
About
No description, website, or topics provided.
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.