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
Type
/
to 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 }}
prishamehta01
/
Leet-code
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
1,290 Commits
1,290 Commits
1-two-sum
1-two-sum
1013-fibonacci-number
1013-fibonacci-number
1034-subarrays-with-k-different-integers
1034-subarrays-with-k-different-integers
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
1049-minimum-domino-rotations-for-equal-row
1049-minimum-domino-rotations-for-equal-row
1056-capacity-to-ship-packages-within-d-days
1056-capacity-to-ship-packages-within-d-days
1078-remove-outermost-parentheses
1078-remove-outermost-parentheses
11-container-with-most-water
11-container-with-most-water
112-path-sum
112-path-sum
118-pascals-triangle
118-pascals-triangle
119-pascals-triangle-ii
119-pascals-triangle-ii
12-integer-to-roman
12-integer-to-roman
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
122-best-time-to-buy-and-sell-stock-ii
122-best-time-to-buy-and-sell-stock-ii
1231-replace-elements-with-greatest-element-on-right-side
1231-replace-elements-with-greatest-element-on-right-side
125-valid-palindrome
125-valid-palindrome
128-longest-consecutive-sequence
128-longest-consecutive-sequence
13-roman-to-integer
13-roman-to-integer
1335-maximum-candies-allocated-to-k-children
1335-maximum-candies-allocated-to-k-children
134-gas-station
134-gas-station
135-candy
135-candy
136-single-number
136-single-number
1370-count-number-of-nice-subarrays
1370-count-number-of-nice-subarrays
14-longest-common-prefix
14-longest-common-prefix
1408-find-the-smallest-divisor-given-a-threshold
1408-find-the-smallest-divisor-given-a-threshold
141-linked-list-cycle
141-linked-list-cycle
1435-xor-queries-of-a-subarray
1435-xor-queries-of-a-subarray
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1444-number-of-steps-to-reduce-a-number-to-zero
1444-number-of-steps-to-reduce-a-number-to-zero
1460-number-of-substrings-containing-all-three-characters
1460-number-of-substrings-containing-all-three-characters
15-3sum
15-3sum
151-reverse-words-in-a-string
151-reverse-words-in-a-string
152-maximum-product-subarray
152-maximum-product-subarray
1529-max-difference-you-can-get-from-changing-an-integer
1529-max-difference-you-can-get-from-changing-an-integer
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1537-maximum-score-after-splitting-a-string
1537-maximum-score-after-splitting-a-string
1538-maximum-points-you-can-obtain-from-cards
1538-maximum-points-you-can-obtain-from-cards
155-min-stack
155-min-stack
1574-maximum-product-of-two-elements-in-an-array
1574-maximum-product-of-two-elements-in-an-array
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1603-running-sum-of-1d-array
1603-running-sum-of-1d-array
1605-minimum-number-of-days-to-make-m-bouquets
1605-minimum-number-of-days-to-make-m-bouquets
162-find-peak-element
162-find-peak-element
1631-number-of-sub-arrays-with-odd-sum
1631-number-of-sub-arrays-with-odd-sum
1646-kth-missing-positive-number
1646-kth-missing-positive-number
1656-count-good-triplets
1656-count-good-triplets
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
169-majority-element
169-majority-element
1791-richest-customer-wealth
1791-richest-customer-wealth
18-4sum
18-4sum
182-duplicate-emails
182-duplicate-emails
1849-maximum-absolute-sum-of-any-subarray
1849-maximum-absolute-sum-of-any-subarray
1878-check-if-array-is-sorted-and-rotated
1878-check-if-array-is-sorted-and-rotated
189-rotate-array
189-rotate-array
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
191-number-of-1-bits
191-number-of-1-bits
1950-sign-of-the-product-of-an-array
1950-sign-of-the-product-of-an-array
1951-find-the-winner-of-the-circular-game
1951-find-the-winner-of-the-circular-game
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
2032-largest-odd-number-in-string
2032-largest-odd-number-in-string
205-isomorphic-strings
205-isomorphic-strings
2050-count-good-numbers
2050-count-good-numbers
2059-unique-length-3-palindromic-subsequences
2059-unique-length-3-palindromic-subsequences
206-reverse-linked-list
206-reverse-linked-list
2083-three-divisors
2083-three-divisors
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
21-merge-two-sorted-lists
21-merge-two-sorted-lists
2144-maximum-difference-between-increasing-elements
2144-maximum-difference-between-increasing-elements
217-contains-duplicate
217-contains-duplicate
2231-find-first-palindromic-string-in-the-array
2231-find-first-palindromic-string-in-the-array
2265-partition-array-according-to-given-pivot
2265-partition-array-according-to-given-pivot
2271-rearrange-array-elements-by-sign
2271-rearrange-array-elements-by-sign
2277-count-equal-and-divisible-pairs-in-an-array
2277-count-equal-and-divisible-pairs-in-an-array
229-majority-element-ii
229-majority-element-ii
231-power-of-two
231-power-of-two
234-palindrome-linked-list
234-palindrome-linked-list
238-product-of-array-except-self
238-product-of-array-except-self
242-valid-anagram
242-valid-anagram
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2481-strictly-palindromic-number
2481-strictly-palindromic-number
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
2551-apply-operations-to-an-array
2551-apply-operations-to-an-array
258-add-digits
258-add-digits
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
2610-closest-prime-numbers-in-range
2610-closest-prime-numbers-in-range
2624-difference-between-element-sum-and-digit-sum-of-an-array
2624-difference-between-element-sum-and-digit-sum-of-an-array
2626-count-the-number-of-good-subarrays
2626-count-the-number-of-good-subarrays
2649-count-total-number-of-colored-cells
2649-count-total-number-of-colored-cells
268-missing-number
268-missing-number
2690-house-robber-iv
2690-house-robber-iv
27-remove-element
27-remove-element
2704-maximum-difference-by-remapping-a-digit
2704-maximum-difference-by-remapping-a-digit
2707-merge-two-2d-arrays-by-summing-values
2707-merge-two-2d-arrays-by-summing-values
274-h-index
274-h-index
2752-sum-multiples
2752-sum-multiples
28-find-the-index-of-the-first-occurrence-in-a-string
28-find-the-index-of-the-first-occurrence-in-a-string
283-move-zeroes
283-move-zeroes
287-find-the-duplicate-number
287-find-the-duplicate-number
View all files
About
leetcode problems
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.