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 }}
mskstanmay
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
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
1,074 Commits
1,074 Commits
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
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
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
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
1793-minimum-moves-to-make-array-complementary
1793-minimum-moves-to-make-array-complementary
1800-concatenation-of-consecutive-binary-numbers
1800-concatenation-of-consecutive-binary-numbers
1807-partitioning-into-minimum-number-of-deci-binary-numbers
1807-partitioning-into-minimum-number-of-deci-binary-numbers
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.