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 }}
divyani-22
Leetcode-solution
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Leetcode-solution
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
Leetcode(DSA)
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
319 Commits
319 Commits
Folders and files
Name
Name
Last commit message
Last commit date
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
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1029-vertical-order-traversal-of-a-binary-tree
1029-vertical-order-traversal-of-a-binary-tree
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
1146-greatest-common-divisor-of-strings
1146-greatest-common-divisor-of-strings
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
124-binary-tree-maximum-path-sum
124-binary-tree-maximum-path-sum
13-roman-to-integer
13-roman-to-integer
1310-watering-plants
1310-watering-plants
136-single-number
136-single-number
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
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1482-how-many-numbers-are-smaller-than-the-current-number
1482-how-many-numbers-are-smaller-than-the-current-number
15-3sum
15-3sum
1505-create-target-array-in-the-given-order
1505-create-target-array-in-the-given-order
152-maximum-product-subarray
152-maximum-product-subarray
1528-kids-with-the-greatest-number-of-candies
1528-kids-with-the-greatest-number-of-candies
1547-destination-city
1547-destination-city
155-min-stack
155-min-stack
1570-final-prices-with-a-special-discount-in-a-shop
1570-final-prices-with-a-special-discount-in-a-shop
1574-maximum-product-of-two-elements-in-an-array
1574-maximum-product-of-two-elements-in-an-array
1580-shuffle-the-array
1580-shuffle-the-array
16-3sum-closest
16-3sum-closest
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
1603-running-sum-of-1d-array
1603-running-sum-of-1d-array
1630-count-odd-numbers-in-an-interval-range
1630-count-odd-numbers-in-an-interval-range
1656-count-good-triplets
1656-count-good-triplets
169-majority-element
169-majority-element
1781-check-if-two-string-arrays-are-equivalent
1781-check-if-two-string-arrays-are-equivalent
1791-richest-customer-wealth
1791-richest-customer-wealth
1797-goal-parser-interpretation
1797-goal-parser-interpretation
18-4sum
18-4sum
1806-count-of-matches-in-tournament
1806-count-of-matches-in-tournament
1848-sum-of-unique-elements
1848-sum-of-unique-elements
1878-check-if-array-is-sorted-and-rotated
1878-check-if-array-is-sorted-and-rotated
189-rotate-array
189-rotate-array
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
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
1938-minimum-operations-to-make-the-array-increasing
1938-minimum-operations-to-make-the-array-increasing
198-house-robber
198-house-robber
2-add-two-numbers
2-add-two-numbers
206-reverse-linked-list
206-reverse-linked-list
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
2106-find-greatest-common-divisor-of-array
2106-find-greatest-common-divisor-of-array
2163-kth-distinct-string-in-an-array
2163-kth-distinct-string-in-an-array
217-contains-duplicate
217-contains-duplicate
219-contains-duplicate-ii
219-contains-duplicate-ii
2219-maximum-number-of-words-found-in-sentences
2219-maximum-number-of-words-found-in-sentences
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
229-majority-element-ii
229-majority-element-ii
2308-divide-array-into-equal-pairs
2308-divide-array-into-equal-pairs
234-palindrome-linked-list
234-palindrome-linked-list
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
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
2481-strictly-palindromic-number
2481-strictly-palindromic-number
2507-number-of-common-factors
2507-number-of-common-factors
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
2608-count-the-digits-that-divide-a-number
2608-count-the-digits-that-divide-a-number
2624-difference-between-element-sum-and-digit-sum-of-an-array
2624-difference-between-element-sum-and-digit-sum-of-an-array
268-missing-number
268-missing-number
2714-left-and-right-sum-differences
2714-left-and-right-sum-differences
2727-number-of-senior-citizens
2727-number-of-senior-citizens
2752-sum-multiples
2752-sum-multiples
2766-find-the-prefix-common-array-of-two-arrays
2766-find-the-prefix-common-array-of-two-arrays
2767-maximum-sum-with-exactly-k-elements
2767-maximum-sum-with-exactly-k-elements
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
2876-number-of-employees-who-met-the-target
2876-number-of-employees-who-met-the-target
2917-count-pairs-whose-sum-is-less-than-target
2917-count-pairs-whose-sum-is-less-than-target
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
3163-subarrays-distinct-element-sum-of-squares-i
3163-subarrays-distinct-element-sum-of-squares-i
3165-find-indices-with-index-and-value-difference-i
3165-find-indices-with-index-and-value-difference-i
3194-find-words-containing-character
3194-find-words-containing-character
32-longest-valid-parentheses
32-longest-valid-parentheses
3263-divide-an-array-into-subarrays-with-minimum-cost-i
3263-divide-an-array-into-subarrays-with-minimum-cost-i
328-odd-even-linked-list
328-odd-even-linked-list
3371-harshad-number
3371-harshad-number
3429-special-array-i
3429-special-array-i
344-reverse-string
344-reverse-string
3476-find-minimum-operations-to-make-all-elements-divisible-by-three
3476-find-minimum-operations-to-make-all-elements-divisible-by-three
35-search-insert-position
35-search-insert-position
350-intersection-of-two-arrays-ii
350-intersection-of-two-arrays-ii
3533-snake-in-matrix
3533-snake-in-matrix
3581-the-two-sneaky-numbers-of-digitville
3581-the-two-sneaky-numbers-of-digitville
3606-minimum-element-after-replacement-with-digit-sum
3606-minimum-element-after-replacement-with-digit-sum
3778-transform-array-by-parity
3778-transform-array-by-parity
View all files
About
Leetcode(DSA)
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.