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 }}
pal404error
/
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
1,706 Commits
1,706 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.github/
workflows
.github/
workflows
1-two-sum
1-two-sum
100-same-tree
100-same-tree
1013-fibonacci-number
1013-fibonacci-number
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1021-distribute-coins-in-binary-tree
1021-distribute-coins-in-binary-tree
1023-time-based-key-value-store
1023-time-based-key-value-store
1030-smallest-string-starting-from-leaf
1030-smallest-string-starting-from-leaf
1037-minimum-number-of-k-consecutive-bit-flips
1037-minimum-number-of-k-consecutive-bit-flips
1039-find-the-town-judge
1039-find-the-town-judge
1045-check-if-word-is-valid-after-substitutions
1045-check-if-word-is-valid-after-substitutions
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
1116-maximum-level-sum-of-a-binary-tree
1116-maximum-level-sum-of-a-binary-tree
1138-grumpy-bookstore-owner
1138-grumpy-bookstore-owner
1196-filling-bookcase-shelves
1196-filling-bookcase-shelves
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
1224-minimum-falling-path-sum-ii
1224-minimum-falling-path-sum-ii
125-valid-palindrome
125-valid-palindrome
1258-article-views-i
1258-article-views-i
1267-remove-zero-sum-consecutive-nodes-from-linked-list
1267-remove-zero-sum-consecutive-nodes-from-linked-list
128-longest-consecutive-sequence
128-longest-consecutive-sequence
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
131-palindrome-partitioning
131-palindrome-partitioning
1321-get-equal-substrings-within-budget
1321-get-equal-substrings-within-budget
1331-path-with-maximum-gold
1331-path-with-maximum-gold
136-single-number
136-single-number
1370-count-number-of-nice-subarrays
1370-count-number-of-nice-subarrays
1371-minimum-remove-to-make-valid-parentheses
1371-minimum-remove-to-make-valid-parentheses
1381-maximum-score-words-formed-by-letters
1381-maximum-score-words-formed-by-letters
141-linked-list-cycle
141-linked-list-cycle
143-reorder-list
143-reorder-list
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1450-delete-leaves-with-a-given-value
1450-delete-leaves-with-a-given-value
1462-list-the-products-ordered-in-a-period
1462-list-the-products-ordered-in-a-period
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
1511-count-number-of-teams
1511-count-number-of-teams
1520-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1520-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1553-count-triplets-that-can-form-two-arrays-of-equal-xor
1556-make-two-arrays-equal-by-reversing-subarrays
1556-make-two-arrays-equal-by-reversing-subarrays
1559-cherry-pickup-ii
1559-cherry-pickup-ii
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1604-least-number-of-unique-integers-after-k-removals
1604-least-number-of-unique-integers-after-k-removals
1605-minimum-number-of-days-to-make-m-bouquets
1605-minimum-number-of-days-to-make-m-bouquets
165-compare-version-numbers
165-compare-version-numbers
1666-make-the-string-great
1666-make-the-string-great
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1675-magnetic-force-between-two-balls
1675-magnetic-force-between-two-balls
168-excel-sheet-column-title
168-excel-sheet-column-title
169-majority-element
169-majority-element
171-excel-sheet-column-number
171-excel-sheet-column-number
1731-even-odd-tree
1731-even-odd-tree
1737-maximum-nesting-depth-of-the-parentheses
1737-maximum-nesting-depth-of-the-parentheses
1741-sort-array-by-increasing-frequency
1741-sort-array-by-increasing-frequency
1762-furthest-building-you-can-reach
1762-furthest-building-you-can-reach
1765-merge-in-between-linked-lists
1765-merge-in-between-linked-lists
1802-number-of-students-unable-to-eat-lunch
1802-number-of-students-unable-to-eat-lunch
1823-determine-if-string-halves-are-alike
1823-determine-if-string-halves-are-alike
1850-minimum-length-of-string-after-deleting-similar-ends
1850-minimum-length-of-string-after-deleting-similar-ends
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
190-reverse-bits
190-reverse-bits
196-delete-duplicate-emails
196-delete-duplicate-emails
197-rising-temperature
197-rising-temperature
199-binary-tree-right-side-view
199-binary-tree-right-side-view
20-valid-parentheses
20-valid-parentheses
201-bitwise-and-of-numbers-range
201-bitwise-and-of-numbers-range
202-happy-number
202-happy-number
203-remove-linked-list-elements
203-remove-linked-list-elements
204-count-primes
204-count-primes
2044-number-of-wonderful-substrings
2044-number-of-wonderful-substrings
205-isomorphic-strings
205-isomorphic-strings
206-reverse-linked-list
206-reverse-linked-list
2103-find-all-groups-of-farmland
2103-find-all-groups-of-farmland
2121-find-if-path-exists-in-graph
2121-find-if-path-exists-in-graph
2163-kth-distinct-string-in-an-array
2163-kth-distinct-string-in-an-array
217-contains-duplicate
217-contains-duplicate
2171-second-minimum-time-to-reach-destination
2171-second-minimum-time-to-reach-destination
219-contains-duplicate-ii
219-contains-duplicate-ii
2195-time-needed-to-buy-tickets
2195-time-needed-to-buy-tickets
22-generate-parentheses
22-generate-parentheses
2213-find-all-people-with-secret
2213-find-all-people-with-secret
222-count-complete-tree-nodes
222-count-complete-tree-nodes
2231-find-first-palindromic-string-in-the-array
2231-find-first-palindromic-string-in-the-array
226-invert-binary-tree
226-invert-binary-tree
2271-rearrange-array-elements-by-sign
2271-rearrange-array-elements-by-sign
228-summary-ranges
228-summary-ranges
230-kth-smallest-element-in-a-bst
230-kth-smallest-element-in-a-bst
231-power-of-two
231-power-of-two
234-palindrome-linked-list
234-palindrome-linked-list
2379-maximum-total-importance-of-roads
2379-maximum-total-importance-of-roads
238-product-of-array-except-self
238-product-of-array-except-self
24-swap-nodes-in-pairs
24-swap-nodes-in-pairs
2416-evaluate-boolean-binary-tree
2416-evaluate-boolean-binary-tree
242-valid-anagram
242-valid-anagram
2444-longest-ideal-subsequence
2444-longest-ideal-subsequence
View all files
Repository files navigation
README
More
items
Leetcode
All Leetcode history and solved problems
About
All Leetcode history and solved problems
pal404error.github.io/Leetcode/
Topics
leetcode
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.