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 }}
Sparsh5001
/
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
658 Commits
658 Commits
1-two-sum
1-two-sum
100-same-tree
100-same-tree
101-symmetric-tree
101-symmetric-tree
1013-fibonacci-number
1013-fibonacci-number
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1035-cousins-in-binary-tree
1035-cousins-in-binary-tree
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1056-capacity-to-ship-packages-within-d-days
1056-capacity-to-ship-packages-within-d-days
107-binary-tree-level-order-traversal-ii
107-binary-tree-level-order-traversal-ii
1072-next-greater-node-in-linked-list
1072-next-greater-node-in-linked-list
11-container-with-most-water
11-container-with-most-water
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
1185-find-in-mountain-array
1185-find-in-mountain-array
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
125-valid-palindrome
125-valid-palindrome
128-longest-consecutive-sequence
128-longest-consecutive-sequence
1302-delete-characters-to-make-fancy-string
1302-delete-characters-to-make-fancy-string
131-palindrome-partitioning
131-palindrome-partitioning
1310-watering-plants
1310-watering-plants
1324-where-will-the-ball-fall
1324-where-will-the-ball-fall
136-single-number
136-single-number
14-longest-common-prefix
14-longest-common-prefix
141-linked-list-cycle
141-linked-list-cycle
142-linked-list-cycle-ii
142-linked-list-cycle-ii
143-reorder-list
143-reorder-list
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
1446-angle-between-hands-of-a-clock
1446-angle-between-hands-of-a-clock
1448-maximum-69-number
1448-maximum-69-number
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
146-lru-cache
146-lru-cache
1460-number-of-substrings-containing-all-three-characters
1460-number-of-substrings-containing-all-three-characters
148-sort-list
148-sort-list
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1544-count-good-nodes-in-binary-tree
1544-count-good-nodes-in-binary-tree
155-min-stack
155-min-stack
1574-maximum-product-of-two-elements-in-an-array
1574-maximum-product-of-two-elements-in-an-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
1648-minimum-insertions-to-balance-a-parentheses-string
1648-minimum-insertions-to-balance-a-parentheses-string
1667-find-kth-bit-in-nth-binary-string
1667-find-kth-bit-in-nth-binary-string
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
169-majority-element
169-majority-element
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
172-factorial-trailing-zeroes
172-factorial-trailing-zeroes
18-4sum
18-4sum
189-rotate-array
189-rotate-array
1894-merge-strings-alternately
1894-merge-strings-alternately
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
1951-find-the-winner-of-the-circular-game
1951-find-the-winner-of-the-circular-game
199-binary-tree-right-side-view
199-binary-tree-right-side-view
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
202-happy-number
202-happy-number
2021-remove-all-occurrences-of-a-substring
2021-remove-all-occurrences-of-a-substring
2058-concatenation-of-array
2058-concatenation-of-array
206-reverse-linked-list
206-reverse-linked-list
209-minimum-size-subarray-sum
209-minimum-size-subarray-sum
2099-number-of-strings-that-appear-as-substrings-in-word
2099-number-of-strings-that-appear-as-substrings-in-word
21-merge-two-sorted-lists
21-merge-two-sorted-lists
217-contains-duplicate
217-contains-duplicate
219-contains-duplicate-ii
219-contains-duplicate-ii
22-generate-parentheses
22-generate-parentheses
2228-watering-plants-ii
2228-watering-plants-ii
225-implement-stack-using-queues
225-implement-stack-using-queues
226-invert-binary-tree
226-invert-binary-tree
231-power-of-two
231-power-of-two
2346-largest-3-same-digit-number-in-string
2346-largest-3-same-digit-number-in-string
238-product-of-array-except-self
238-product-of-array-except-self
239-sliding-window-maximum
239-sliding-window-maximum
242-valid-anagram
242-valid-anagram
2427-first-letter-to-appear-twice
2427-first-letter-to-appear-twice
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
268-missing-number
268-missing-number
27-remove-element
27-remove-element
282-expression-add-operators
282-expression-add-operators
287-find-the-duplicate-number
287-find-the-duplicate-number
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
326-power-of-three
326-power-of-three
3275-minimum-number-of-pushes-to-type-word-i
3275-minimum-number-of-pushes-to-type-word-i
3276-minimum-number-of-pushes-to-type-word-ii
3276-minimum-number-of-pushes-to-type-word-ii
33-search-in-rotated-sorted-array
33-search-in-rotated-sorted-array
342-power-of-four
342-power-of-four
347-top-k-frequent-elements
347-top-k-frequent-elements
35-search-insert-position
35-search-insert-position
36-valid-sudoku
36-valid-sudoku
37-sudoku-solver
37-sudoku-solver
3812-smallest-palindromic-rearrangement-i
3812-smallest-palindromic-rearrangement-i
3813-smallest-palindromic-rearrangement-ii
3813-smallest-palindromic-rearrangement-ii
3817-maximum-containers-on-a-ship
3817-maximum-containers-on-a-ship
3830-find-closest-person
3830-find-closest-person
3859-maximum-product-of-two-digits
3859-maximum-product-of-two-digits
3872-find-most-frequent-vowel-and-consonant
3872-find-most-frequent-vowel-and-consonant
39-combination-sum
39-combination-sum
View all files
Repository files navigation
README
More
items
Leetcode
DSA
About
DSA
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.