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
Events
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 }}
Shiv10
LeetCodeSols
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCodeSols
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
Collection of LeetCode questions and their solutions
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
560 Commits
560 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
100-same-tree
100-same-tree
1014-best-sightseeing-pair
1014-best-sightseeing-pair
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1046-last-stone-weight
1046-last-stone-weight
105-construct-binary-tree-from-preorder-and-inorder-traversal
105-construct-binary-tree-from-preorder-and-inorder-traversal
1137-n-th-tribonacci-number
1137-n-th-tribonacci-number
1143-longest-common-subsequence
1143-longest-common-subsequence
116-populating-next-right-pointers-in-each-node
116-populating-next-right-pointers-in-each-node
118-pascals-triangle
118-pascals-triangle
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
128-longest-consecutive-sequence
128-longest-consecutive-sequence
13-roman-to-integer
13-roman-to-integer
131-palindrome-partitioning
131-palindrome-partitioning
138-copy-list-with-random-pointer
138-copy-list-with-random-pointer
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
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
15-3sum
15-3sum
151-reverse-words-in-a-string
151-reverse-words-in-a-string
152-maximum-product-subarray
152-maximum-product-subarray
1567-maximum-length-of-subarray-with-positive-product
1567-maximum-length-of-subarray-with-positive-product
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
169-majority-element
169-majority-element
18-4sum
18-4sum
189-rotate-array
189-rotate-array
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
198-house-robber
198-house-robber
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
202-happy-number
202-happy-number
205-isomorphic-strings
205-isomorphic-strings
206-reverse-linked-list
206-reverse-linked-list
21-merge-two-sorted-lists
21-merge-two-sorted-lists
213-house-robber-ii
213-house-robber-ii
229-majority-element-ii
229-majority-element-ii
234-palindrome-linked-list
234-palindrome-linked-list
235-lowest-common-ancestor-of-a-binary-search-tree
235-lowest-common-ancestor-of-a-binary-search-tree
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
242-valid-anagram
242-valid-anagram
25-reverse-nodes-in-k-group
25-reverse-nodes-in-k-group
26-remove-duplicates-from-sorted-array
26-remove-duplicates-from-sorted-array
27-remove-element
27-remove-element
278-first-bad-version
278-first-bad-version
28-implement-strstr
28-implement-strstr
283-move-zeroes
283-move-zeroes
287-find-the-duplicate-number
287-find-the-duplicate-number
299-bulls-and-cows
299-bulls-and-cows
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
31-next-permutation
31-next-permutation
315-count-of-smaller-numbers-after-self
315-count-of-smaller-numbers-after-self
328-odd-even-linked-list
328-odd-even-linked-list
344-reverse-string
344-reverse-string
37-sudoku-solver
37-sudoku-solver
39-combination-sum
39-combination-sum
392-is-subsequence
392-is-subsequence
3sum
3sum
40-combination-sum-ii
40-combination-sum-ii
409-longest-palindrome
409-longest-palindrome
42-trapping-rain-water
42-trapping-rain-water
424-longest-repeating-character-replacement
424-longest-repeating-character-replacement
438-find-all-anagrams-in-a-string
438-find-all-anagrams-in-a-string
45-jump-game-ii
45-jump-game-ii
46-permutations
46-permutations
48-rotate-image
48-rotate-image
485-max-consecutive-ones
485-max-consecutive-ones
493-reverse-pairs
493-reverse-pairs
509-fibonacci-number
509-fibonacci-number
51-n-queens
51-n-queens
53-maximum-subarray
53-maximum-subarray
54-spiral-matrix
54-spiral-matrix
540-single-element-in-a-sorted-array
540-single-element-in-a-sorted-array
55-jump-game
55-jump-game
557-reverse-words-in-a-string-iii
557-reverse-words-in-a-string-iii
56-merge-intervals
56-merge-intervals
567-permutation-in-string
567-permutation-in-string
589-n-ary-tree-preorder-traversal
589-n-ary-tree-preorder-traversal
60-permutation-sequence
60-permutation-sequence
61-rotate-list
61-rotate-list
617-merge-two-binary-trees
617-merge-two-binary-trees
62-unique-paths
62-unique-paths
67-add-binary
67-add-binary
692-top-k-frequent-words
692-top-k-frequent-words
695-max-area-of-island
695-max-area-of-island
70-climbing-stairs
70-climbing-stairs
704-binary-search
704-binary-search
72-edit-distance
72-edit-distance
724-find-pivot-index
724-find-pivot-index
73-set-matrix-zeroes
73-set-matrix-zeroes
733-flood-fill
733-flood-fill
74-search-a-2d-matrix
74-search-a-2d-matrix
740-delete-and-earn
740-delete-and-earn
746-min-cost-climbing-stairs
746-min-cost-climbing-stairs
75-sort-colors
75-sort-colors
View all files
Repository files navigation
README
More
items
LeetCodeSols
Collection of LeetCode questions
About
Collection of LeetCode questions and their solutions
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.