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 }}
DhruvPasricha
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
6
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,085 Commits
1,085 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
1007-minimum-domino-rotations-for-equal-row
1007-minimum-domino-rotations-for-equal-row
101-symmetric-tree
101-symmetric-tree
1012-numbers-with-repeated-digits
1012-numbers-with-repeated-digits
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1022-sum-of-root-to-leaf-binary-numbers
1022-sum-of-root-to-leaf-binary-numbers
1027-longest-arithmetic-subsequence
1027-longest-arithmetic-subsequence
1032-stream-of-characters
1032-stream-of-characters
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1041-robot-bounded-in-circle
1041-robot-bounded-in-circle
1046-last-stone-weight
1046-last-stone-weight
1091-shortest-path-in-binary-matrix
1091-shortest-path-in-binary-matrix
1092-shortest-common-supersequence
1092-shortest-common-supersequence
1094-car-pooling
1094-car-pooling
11-container-with-most-water
11-container-with-most-water
1109-corporate-flight-bookings
1109-corporate-flight-bookings
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
112-path-sum
112-path-sum
1162-as-far-from-land-as-possible
1162-as-far-from-land-as-possible
117-populating-next-right-pointers-in-each-node-ii
117-populating-next-right-pointers-in-each-node-ii
118-pascals-triangle
118-pascals-triangle
1192-critical-connections-in-a-network
1192-critical-connections-in-a-network
1202-smallest-string-with-swaps
1202-smallest-string-with-swaps
1209-remove-all-adjacent-duplicates-in-string-ii
1209-remove-all-adjacent-duplicates-in-string-ii
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
1262-greatest-sum-divisible-by-three
1262-greatest-sum-divisible-by-three
127-word-ladder
127-word-ladder
1288-remove-covered-intervals
1288-remove-covered-intervals
1291-sequential-digits
1291-sequential-digits
1305-all-elements-in-two-binary-search-trees
1305-all-elements-in-two-binary-search-trees
131-palindrome-partitioning
131-palindrome-partitioning
132-palindrome-partitioning-ii
132-palindrome-partitioning-ii
133-clone-graph
133-clone-graph
1332-remove-palindromic-subsequences
1332-remove-palindromic-subsequences
1337-the-k-weakest-rows-in-a-matrix
1337-the-k-weakest-rows-in-a-matrix
134-gas-station
134-gas-station
1340-jump-game-v
1340-jump-game-v
1345-jump-game-iv
1345-jump-game-iv
135-candy
135-candy
1354-construct-target-array-with-multiple-sums
1354-construct-target-array-with-multiple-sums
1359-count-all-valid-pickup-and-delivery-options
1359-count-all-valid-pickup-and-delivery-options
136-single-number
136-single-number
1363-largest-multiple-of-three
1363-largest-multiple-of-three
1396-design-underground-system
1396-design-underground-system
141-linked-list-cycle
141-linked-list-cycle
142-linked-list-cycle-ii
142-linked-list-cycle-ii
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1463-cherry-pickup-ii
1463-cherry-pickup-ii
148-sort-list
148-sort-list
1510-stone-game-iv
1510-stone-game-iv
152-maximum-product-subarray
152-maximum-product-subarray
1524-number-of-sub-arrays-with-odd-sum
1524-number-of-sub-arrays-with-odd-sum
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1609-even-odd-tree
1609-even-odd-tree
1631-path-with-minimum-effort
1631-path-with-minimum-effort
1641-count-sorted-vowel-strings
1641-count-sorted-vowel-strings
1642-furthest-building-you-can-reach
1642-furthest-building-you-can-reach
1646-get-maximum-in-generated-array
1646-get-maximum-in-generated-array
165-compare-version-numbers
165-compare-version-numbers
1658-minimum-operations-to-reduce-x-to-zero
1658-minimum-operations-to-reduce-x-to-zero
1663-smallest-string-with-a-given-numeric-value
1663-smallest-string-with-a-given-numeric-value
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1672-richest-customer-wealth
1672-richest-customer-wealth
1675-minimize-deviation-in-array
1675-minimize-deviation-in-array
168-excel-sheet-column-title
168-excel-sheet-column-title
169-majority-element
169-majority-element
1695-maximum-erasure-value
1695-maximum-erasure-value
1707-maximum-xor-with-an-element-from-array
1707-maximum-xor-with-an-element-from-array
171-excel-sheet-column-number
171-excel-sheet-column-number
173-binary-search-tree-iterator
173-binary-search-tree-iterator
1755-closest-subsequence-sum
1755-closest-subsequence-sum
1757-recyclable-and-low-fat-products
1757-recyclable-and-low-fat-products
1791-find-center-of-star-graph
1791-find-center-of-star-graph
1829-maximum-xor-for-each-query
1829-maximum-xor-for-each-query
1871-jump-game-vii
1871-jump-game-vii
1877-minimize-maximum-pair-sum-in-array
1877-minimize-maximum-pair-sum-in-array
1879-minimum-xor-sum-of-two-arrays
1879-minimum-xor-sum-of-two-arrays
189-rotate-array
189-rotate-array
1909-remove-one-element-to-make-the-array-strictly-increasing
1909-remove-one-element-to-make-the-array-strictly-increasing
1971-find-if-path-exists-in-graph
1971-find-if-path-exists-in-graph
1987-number-of-unique-good-subsequences
1987-number-of-unique-good-subsequences
1998-gcd-sort-of-an-array
1998-gcd-sort-of-an-array
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
201-bitwise-and-of-numbers-range
201-bitwise-and-of-numbers-range
203-remove-linked-list-elements
203-remove-linked-list-elements
206-reverse-linked-list
206-reverse-linked-list
2074-reverse-nodes-in-even-length-groups
2074-reverse-nodes-in-even-length-groups
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
2095-delete-the-middle-node-of-a-linked-list
2095-delete-the-middle-node-of-a-linked-list
21-merge-two-sorted-lists
21-merge-two-sorted-lists
2104-sum-of-subarray-ranges
2104-sum-of-subarray-ranges
211-design-add-and-search-words-data-structure
211-design-add-and-search-words-data-structure
2140-solving-questions-with-brainpower
2140-solving-questions-with-brainpower
2144-minimum-cost-of-buying-candies-with-discount
2144-minimum-cost-of-buying-candies-with-discount
2145-count-the-hidden-sequences
2145-count-the-hidden-sequences
2146-k-highest-ranked-items-within-a-price-range
2146-k-highest-ranked-items-within-a-price-range
2147-number-of-ways-to-divide-a-long-corridor
2147-number-of-ways-to-divide-a-long-corridor
View all files
Repository files navigation
README
More
items
LeetCode
Collection of LeetCode questions I have solved!
About
Collection of LeetCode questions I have solved!
Resources
Readme
Activity
Stars
6
stars
Watchers
1
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.