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 }}
mskstanmay
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
1
(
1
)
You must be signed in to star a repository
About
A collection of solved LeetCode problems with solutions
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
1,114 Commits
1,114 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1-two-sum
1-two-sum
1001-n-repeated-element-in-size-2n-array
1001-n-repeated-element-in-size-2n-array
1005-univalued-binary-tree
1005-univalued-binary-tree
101-symmetric-tree
101-symmetric-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
1025-minimum-cost-for-tickets
1025-minimum-cost-for-tickets
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
1031-add-to-array-form-of-integer
1031-add-to-array-form-of-integer
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1054-complement-of-base-10-integer
1054-complement-of-base-10-integer
1064-smallest-integer-divisible-by-k
1064-smallest-integer-divisible-by-k
1071-binary-prefix-divisible-by-5
1071-binary-prefix-divisible-by-5
1072-next-greater-node-in-linked-list
1072-next-greater-node-in-linked-list
1079-sum-of-root-to-leaf-binary-numbers
1079-sum-of-root-to-leaf-binary-numbers
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
1086-divisor-game
1086-divisor-game
109-convert-sorted-list-to-binary-search-tree
109-convert-sorted-list-to-binary-search-tree
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
111-minimum-depth-of-binary-tree
111-minimum-depth-of-binary-tree
1116-maximum-level-sum-of-a-binary-tree
1116-maximum-level-sum-of-a-binary-tree
112-path-sum
112-path-sum
1127-last-stone-weight
1127-last-stone-weight
1128-remove-all-adjacent-duplicates-in-string
1128-remove-all-adjacent-duplicates-in-string
114-flatten-binary-tree-to-linked-list
114-flatten-binary-tree-to-linked-list
118-pascals-triangle
118-pascals-triangle
119-pascals-triangle-ii
119-pascals-triangle-ii
1206-corporate-flight-bookings
1206-corporate-flight-bookings
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
1236-n-th-tribonacci-number
1236-n-th-tribonacci-number
125-valid-palindrome
125-valid-palindrome
1250-longest-common-subsequence
1250-longest-common-subsequence
128-longest-consecutive-sequence
128-longest-consecutive-sequence
1284-four-divisors
1284-four-divisors
1285-balance-a-binary-search-tree
1285-balance-a-binary-search-tree
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
13-roman-to-integer
13-roman-to-integer
1306-minimum-absolute-difference
1306-minimum-absolute-difference
1311-largest-magic-square
1311-largest-magic-square
1320-remove-all-adjacent-duplicates-in-string-ii
1320-remove-all-adjacent-duplicates-in-string-ii
1333-sort-the-jumbled-numbers
1333-sort-the-jumbled-numbers
136-single-number
136-single-number
1386-shift-2d-grid
1386-shift-2d-grid
1388-greatest-sum-divisible-by-three
1388-greatest-sum-divisible-by-three
14-longest-common-prefix
14-longest-common-prefix
141-linked-list-cycle
141-linked-list-cycle
1413-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
1413-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
142-linked-list-cycle-ii
142-linked-list-cycle-ii
1428-jump-game-iii
1428-jump-game-iii
143-reorder-list
143-reorder-list
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
1443-minimum-distance-to-type-a-word-using-two-fingers
1443-minimum-distance-to-type-a-word-using-two-fingers
1447-jump-game-iv
1447-jump-game-iv
145-binary-tree-postorder-traversal
145-binary-tree-postorder-traversal
1458-sort-integers-by-the-number-of-1-bits
1458-sort-integers-by-the-number-of-1-bits
1460-number-of-substrings-containing-all-three-characters
1460-number-of-substrings-containing-all-three-characters
1465-maximum-product-of-splitted-binary-tree
1465-maximum-product-of-splitted-binary-tree
1476-count-negative-numbers-in-a-sorted-matrix
1476-count-negative-numbers-in-a-sorted-matrix
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
1507-check-if-there-is-a-valid-path-in-a-grid
1507-check-if-there-is-a-valid-path-in-a-grid
1508-longest-happy-prefix
1508-longest-happy-prefix
151-reverse-words-in-a-string
151-reverse-words-in-a-string
1510-find-lucky-integer-in-an-array
1510-find-lucky-integer-in-an-array
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1520-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1520-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1527-number-of-ways-to-paint-n-3-grid
1527-number-of-ways-to-paint-n-3-grid
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
154-find-minimum-in-rotated-sorted-array-ii
154-find-minimum-in-rotated-sorted-array-ii
1542-consecutive-characters
1542-consecutive-characters
1548-check-if-all-1s-are-at-least-length-k-places-away
1548-check-if-all-1s-are-at-least-length-k-places-away
155-min-stack
155-min-stack
1557-check-if-a-string-contains-all-binary-codes-of-size-k
1557-check-if-a-string-contains-all-binary-codes-of-size-k
1569-max-dot-product-of-two-subsequences
1569-max-dot-product-of-two-subsequences
1574-maximum-product-of-two-elements-in-an-array
1574-maximum-product-of-two-elements-in-an-array
1584-average-salary-excluding-the-minimum-and-maximum-salary
1584-average-salary-excluding-the-minimum-and-maximum-salary
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
162-find-peak-element
162-find-peak-element
1636-number-of-substrings-with-only-1s
1636-number-of-substrings-with-only-1s
1642-water-bottles
1642-water-bottles
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
1677-matrix-diagonal-sum
1677-matrix-diagonal-sum
168-excel-sheet-column-title
168-excel-sheet-column-title
169-majority-element
169-majority-element
1694-make-sum-divisible-by-p
1694-make-sum-divisible-by-p
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
1700-minimum-time-to-make-rope-colorful
1700-minimum-time-to-make-rope-colorful
1704-special-positions-in-a-binary-matrix
1704-special-positions-in-a-binary-matrix
171-excel-sheet-column-number
171-excel-sheet-column-number
1728-fancy-sequence
1728-fancy-sequence
1732-minimum-one-bit-operations-to-make-integers-zero
1732-minimum-one-bit-operations-to-make-integers-zero
1756-minimum-deletions-to-make-string-balanced
1756-minimum-deletions-to-make-string-balanced
1764-maximum-repeating-substring
1764-maximum-repeating-substring
1765-merge-in-between-linked-lists
1765-merge-in-between-linked-lists
1784-minimum-initial-energy-to-finish-tasks
1784-minimum-initial-energy-to-finish-tasks
179-largest-number
179-largest-number
View all files
Repository files navigation
README
More
items
leetcode
A collection of solved LeetCode problems with solutions
About
A collection of solved LeetCode problems with solutions
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Contributors
Languages
You can’t perform that action at this time.