Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
Sparsh5001
Leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
DSA
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
658 Commits
658 Commits
Folders and files
Name
Name
Last commit message
Last commit date
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.