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
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
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 }}
milovate
/
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
Latest commit
History
367 Commits
367 Commits
Folders and files
Name
Name
Last commit message
Last commit date
100-same-tree
100-same-tree
1002-maximum-width-ramp
1002-maximum-width-ramp
1034-subarrays-with-k-different-integers
1034-subarrays-with-k-different-integers
1039-find-the-town-judge
1039-find-the-town-judge
1044-find-common-characters
1044-find-common-characters
1114-binary-search-tree-to-greater-sum-tree
1114-binary-search-tree-to-greater-sum-tree
1119-robot-bounded-in-circle
1119-robot-bounded-in-circle
1127-last-stone-weight
1127-last-stone-weight
1138-grumpy-bookstore-owner
1138-grumpy-bookstore-owner
1171-shortest-path-in-binary-matrix
1171-shortest-path-in-binary-matrix
1224-minimum-falling-path-sum-ii
1224-minimum-falling-path-sum-ii
1229-shortest-path-with-alternating-colors
1229-shortest-path-with-alternating-colors
1231-replace-elements-with-greatest-element-on-right-side
1231-replace-elements-with-greatest-element-on-right-side
128-longest-consecutive-sequence
128-longest-consecutive-sequence
1297-maximum-number-of-balloons
1297-maximum-number-of-balloons
1304-longest-happy-string
1304-longest-happy-string
1325-path-with-maximum-probability
1325-path-with-maximum-probability
1370-count-number-of-nice-subarrays
1370-count-number-of-nice-subarrays
141-linked-list-cycle
141-linked-list-cycle
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1435-xor-queries-of-a-subarray
1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1473-find-the-longest-substring-containing-vowels-in-even-counts
1484-linked-list-in-binary-tree
1484-linked-list-in-binary-tree
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1626-can-make-arithmetic-progression-from-sequence
1626-can-make-arithmetic-progression-from-sequence
1699-number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers
1699-number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers
17-letter-combinations-of-a-phone-number
17-letter-combinations-of-a-phone-number
1802-number-of-students-unable-to-eat-lunch
1802-number-of-students-unable-to-eat-lunch
1818-maximum-score-from-removing-substrings
1818-maximum-score-from-removing-substrings
1890-sum-of-beauty-of-all-substrings
1890-sum-of-beauty-of-all-substrings
1916-find-center-of-star-graph
1916-find-center-of-star-graph
1950-sign-of-the-product-of-an-array
1950-sign-of-the-product-of-an-array
1993-sum-of-all-subset-xor-totals
1993-sum-of-all-subset-xor-totals
2006-find-the-student-that-will-replace-the-chalk
2006-find-the-student-that-will-replace-the-chalk
2022-maximum-alternating-subsequence-sum
2022-maximum-alternating-subsequence-sum
2035-count-sub-islands
2035-count-sub-islands
2038-nearest-exit-from-entrance-in-maze
2038-nearest-exit-from-entrance-in-maze
2054-the-number-of-the-smallest-unoccupied-chair
2054-the-number-of-the-smallest-unoccupied-chair
2058-concatenation-of-array
2058-concatenation-of-array
2076-sum-of-digits-of-string-after-convert
2076-sum-of-digits-of-string-after-convert
2089-maximum-matrix-sum
2089-maximum-matrix-sum
2099-number-of-strings-that-appear-as-substrings-in-word
2099-number-of-strings-that-appear-as-substrings-in-word
2132-convert-1d-array-into-2d-array
2132-convert-1d-array-into-2d-array
2139-detect-squares
2139-detect-squares
217-contains-duplicate
217-contains-duplicate
219-contains-duplicate-ii
219-contains-duplicate-ii
2379-maximum-total-importance-of-roads
2379-maximum-total-importance-of-roads
241-different-ways-to-add-parentheses
241-different-ways-to-add-parentheses
2411-spiral-matrix-iv
2411-spiral-matrix-iv
242-valid-anagram
242-valid-anagram
2488-divide-intervals-into-minimum-number-of-groups
2488-divide-intervals-into-minimum-number-of-groups
2571-find-the-pivot-integer
2571-find-the-pivot-integer
2572-append-characters-to-string-to-make-subsequence
2572-append-characters-to-string-to-make-subsequence
2634-minimum-common-value
2634-minimum-common-value
27-remove-element
27-remove-element
2800-minimum-string-length-after-removing-substrings
2800-minimum-string-length-after-removing-substrings
283-move-zeroes
283-move-zeroes
2903-insert-greatest-common-divisors-in-linked-list
2903-insert-greatest-common-divisors-in-linked-list
292-nim-game
292-nim-game
315-count-of-smaller-numbers-after-self
315-count-of-smaller-numbers-after-self
3150-shortest-and-lexicographically-smallest-beautiful-string
3150-shortest-and-lexicographically-smallest-beautiful-string
3195-separate-black-and-white-balls
3195-separate-black-and-white-balls
3225-length-of-longest-subarray-with-at-most-k-frequency
3225-length-of-longest-subarray-with-at-most-k-frequency
3262-find-polygon-with-the-largest-perimeter
3262-find-polygon-with-the-largest-perimeter
329-longest-increasing-path-in-a-matrix
329-longest-increasing-path-in-a-matrix
3306-mark-elements-on-array-by-performing-queries
3306-mark-elements-on-array-by-performing-queries
3334-apple-redistribution-into-boxes
3334-apple-redistribution-into-boxes
3351-maximize-happiness-of-selected-children
3351-maximize-happiness-of-selected-children
3354-replace-question-marks-in-string-to-minimize-its-value
3354-replace-question-marks-in-string-to-minimize-its-value
3367-find-the-sum-of-encrypted-integers
3367-find-the-sum-of-encrypted-integers
3379-score-of-a-string
3379-score-of-a-string
3394-minimum-array-end
3394-minimum-array-end
3418-count-pairs-that-form-a-complete-day-ii
3418-count-pairs-that-form-a-complete-day-ii
3420-find-occurrences-of-an-element-in-an-array
3420-find-occurrences-of-an-element-in-an-array
3421-count-pairs-that-form-a-complete-day-i
3421-count-pairs-that-form-a-complete-day-i
3422-find-the-n-th-value-after-k-seconds
3422-find-the-n-th-value-after-k-seconds
3428-find-the-xor-of-numbers-which-appear-twice
3428-find-the-xor-of-numbers-which-appear-twice
3437-maximum-total-damage-with-spell-casting
3437-maximum-total-damage-with-spell-casting
3450-find-the-child-who-has-the-ball-after-k-seconds
3450-find-the-child-who-has-the-ball-after-k-seconds
3464-maximize-total-cost-of-alternating-subarrays
3464-maximize-total-cost-of-alternating-subarrays
3479-count-the-number-of-substrings-with-dominant-ones
3479-count-the-number-of-substrings-with-dominant-ones
3485-maximize-score-of-numbers-in-ranges
3485-maximize-score-of-numbers-in-ranges
349-intersection-of-two-arrays
349-intersection-of-two-arrays
3490-find-the-maximum-length-of-valid-subsequence-i
3490-find-the-maximum-length-of-valid-subsequence-i
3495-k-th-nearest-obstacle-queries
3495-k-th-nearest-obstacle-queries
350-intersection-of-two-arrays-ii
350-intersection-of-two-arrays-ii
3507-find-the-count-of-numbers-which-are-not-special
3507-find-the-count-of-numbers-which-are-not-special
3509-k-th-largest-perfect-subtree-size-in-binary-tree
3509-k-th-largest-perfect-subtree-size-in-binary-tree
3510-maximize-the-total-height-of-unique-towers
3510-maximize-the-total-height-of-unique-towers
3515-find-if-digit-game-can-be-won
3515-find-if-digit-game-can-be-won
3517-shortest-distance-after-road-addition-queries-i
3517-shortest-distance-after-road-addition-queries-i
3534-count-almost-equal-pairs-i
3534-count-almost-equal-pairs-i
3555-final-array-state-after-k-multiplication-operations-i
3555-final-array-state-after-k-multiplication-operations-i
3556-final-array-state-after-k-multiplication-operations-ii
3556-final-array-state-after-k-multiplication-operations-ii
3561-remove-methods-from-project
3561-remove-methods-from-project
3579-maximum-possible-number-by-binary-concatenation
3579-maximum-possible-number-by-binary-concatenation
373-find-k-pairs-with-smallest-sums
373-find-k-pairs-with-smallest-sums
386-lexicographical-numbers
386-lexicographical-numbers
39-combination-sum
39-combination-sum
392-is-subsequence
392-is-subsequence
View all files
Repository files navigation
README
More
items
Leetcode
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.