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 }}
leopoldxx
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
0
(
0
)
You must be signed in to star a repository
About
No description, website, or topics provided.
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
308 Commits
308 Commits
Folders and files
Name
Name
Last commit message
Last commit date
p1.two-sum
p1.two-sum
p10.regular-expression-matching
p10.regular-expression-matching
p100.same-tree
p100.same-tree
p101.symmetric-tree
p101.symmetric-tree
p1014.best-sightseeing-pair
p1014.best-sightseeing-pair
p102.binary-tree-level-order-traversal
p102.binary-tree-level-order-traversal
p103.binary-tree-zigzag-level-order-traversal
p103.binary-tree-zigzag-level-order-traversal
p1034.coloring-a-border
p1034.coloring-a-border
p104.maximum-depth-of-binary-tree
p104.maximum-depth-of-binary-tree
p105.construct-binary-tree-from-preorder-and-inorder-traversal
p105.construct-binary-tree-from-preorder-and-inorder-traversal
p106.construct-binary-tree-from-inorder-and-postorder-traversal
p106.construct-binary-tree-from-inorder-and-postorder-traversal
p107.binary-tree-level-order-traversal-ii
p107.binary-tree-level-order-traversal-ii
p108.convert-sorted-array-to-binary-search-tree
p108.convert-sorted-array-to-binary-search-tree
p109.convert-sorted-list-to-binary-search-tree
p109.convert-sorted-list-to-binary-search-tree
p11.container-with-most-water
p11.container-with-most-water
p110.balanced-binary-tree
p110.balanced-binary-tree
p111.minimum-depth-of-binary-tree
p111.minimum-depth-of-binary-tree
p112.path-sum
p112.path-sum
p113.path-sum-ii
p113.path-sum-ii
p1137.n-th-tribonacci-number
p1137.n-th-tribonacci-number
p114.flatten-binary-tree-to-linked-list
p114.flatten-binary-tree-to-linked-list
p1143.longest-common-subsequence
p1143.longest-common-subsequence
p116.populating-next-right-pointers-in-each-node
p116.populating-next-right-pointers-in-each-node
p117.populating-next-right-pointers-in-each-node-ii
p117.populating-next-right-pointers-in-each-node-ii
p118.pascals-triangle
p118.pascals-triangle
p119.pascals-triangle-ii
p119.pascals-triangle-ii
p12.integer-to-roman
p12.integer-to-roman
p120.triangle
p120.triangle
p1202.smallest-string-with-swaps
p1202.smallest-string-with-swaps
p121.best-time-to-buy-and-sell-stock
p121.best-time-to-buy-and-sell-stock
p122.best-time-to-buy-and-sell-stock-ii
p122.best-time-to-buy-and-sell-stock-ii
p125.valid-palindrome
p125.valid-palindrome
p128.longest-consecutive-sequence
p128.longest-consecutive-sequence
p1281.subtract-the-product-and-sum-of-digits-of-an-integer
p1281.subtract-the-product-and-sum-of-digits-of-an-integer
p129.sum-root-to-leaf-numbers
p129.sum-root-to-leaf-numbers
p13.roman-to-integer
p13.roman-to-integer
p130.surrounded-regions
p130.surrounded-regions
p131.palindrome-partitioning
p131.palindrome-partitioning
p1313.decompress-run-length-encoded-list
p1313.decompress-run-length-encoded-list
p1314.matrix-block-sum
p1314.matrix-block-sum
p133.clone-graph
p133.clone-graph
p134.gas-station
p134.gas-station
p1342.number-of-steps-to-reduce-a-number-to-zero
p1342.number-of-steps-to-reduce-a-number-to-zero
p136.single-number
p136.single-number
p137.single-number-ii
p137.single-number-ii
p138.copy-list-with-random-pointer
p138.copy-list-with-random-pointer
p1385.find-the-distance-value-between-two-arrays
p1385.find-the-distance-value-between-two-arrays
p139.word-break
p139.word-break
p14.longest-common-prefix
p14.longest-common-prefix
p141.linked-list-cycle
p141.linked-list-cycle
p142.linked-list-cycle-ii
p142.linked-list-cycle-ii
p143.reorder-list
p143.reorder-list
p144.binary-tree-preorder-traversal
p144.binary-tree-preorder-traversal
p145.binary-tree-postorder-traversal
p145.binary-tree-postorder-traversal
p1455.check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
p1455.check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
p147.insertion-sort-list
p147.insertion-sort-list
p148.sort-list
p148.sort-list
p1491.average-salary-excluding-the-minimum-and-maximum-salary
p1491.average-salary-excluding-the-minimum-and-maximum-salary
p15.3sum
p15.3sum
p150.evaluate-reverse-polish-notation
p150.evaluate-reverse-polish-notation
p1502.can-make-arithmetic-progression-from-sequence
p1502.can-make-arithmetic-progression-from-sequence
p151.reverse-words-in-a-string
p151.reverse-words-in-a-string
p152.maximum-product-subarray
p152.maximum-product-subarray
p1523.count-odd-numbers-in-an-interval-range
p1523.count-odd-numbers-in-an-interval-range
p153.find-minimum-in-rotated-sorted-array
p153.find-minimum-in-rotated-sorted-array
p1539.kth-missing-positive-number
p1539.kth-missing-positive-number
p155.min-stack
p155.min-stack
p1567.maximum-length-of-subarray-with-positive-product
p1567.maximum-length-of-subarray-with-positive-product
p16.3sum-closest
p16.3sum-closest
p160.intersection-of-two-linked-lists
p160.intersection-of-two-linked-lists
p162.find-peak-element
p162.find-peak-element
p165.compare-version-numbers
p165.compare-version-numbers
p1658.minimum-operations-to-reduce-x-to-zero
p1658.minimum-operations-to-reduce-x-to-zero
p166.fraction-to-recurring-decimal
p166.fraction-to-recurring-decimal
p167.two-sum-ii-input-array-is-sorted
p167.two-sum-ii-input-array-is-sorted
p1679.max-number-of-k-sum-pairs
p1679.max-number-of-k-sum-pairs
p168.excel-sheet-column-title
p168.excel-sheet-column-title
p169.majority-element
p169.majority-element
p1695.maximum-erasure-value
p1695.maximum-erasure-value
p17.letter-combinations-of-a-phone-number
p17.letter-combinations-of-a-phone-number
p171.excel-sheet-column-number
p171.excel-sheet-column-number
p172.factorial-trailing-zeroes
p172.factorial-trailing-zeroes
p1721.swapping-nodes-in-a-linked-list
p1721.swapping-nodes-in-a-linked-list
p173.binary-search-tree-iterator
p173.binary-search-tree-iterator
p1779.find-nearest-point-that-has-the-same-x-or-y-coordinate
p1779.find-nearest-point-that-has-the-same-x-or-y-coordinate
p179.largest-number
p179.largest-number
p18.4sum
p18.4sum
p1822.sign-of-the-product-of-an-array
p1822.sign-of-the-product-of-an-array
p187.repeated-dna-sequences
p187.repeated-dna-sequences
p1886.determine-whether-matrix-can-be-obtained-by-rotation
p1886.determine-whether-matrix-can-be-obtained-by-rotation
p189.rotate-array
p189.rotate-array
p19.remove-nth-node-from-end-of-list
p19.remove-nth-node-from-end-of-list
p190.reverse-bits
p190.reverse-bits
p191.number-of-1-bits
p191.number-of-1-bits
p1920.build-array-from-permutation
p1920.build-array-from-permutation
p1937.maximum-number-of-points-with-cost
p1937.maximum-number-of-points-with-cost
p1958.crawler-log-folder
p1958.crawler-log-folder
p1961.check-if-string-is-a-prefix-of-array
p1961.check-if-string-is-a-prefix-of-array
p198.house-robber
p198.house-robber
p199.binary-tree-right-side-view copy
p199.binary-tree-right-side-view copy
View all files
Repository files navigation
README
More
items
leetcode problem solutions
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.