Sitelet
https://github.com/ChrisVilches/Algorithms/tree/main/leetcode
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 }}
ChrisVilches
/
Algorithms
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
5
Code
Issues
11
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
Algorithms
/
leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
Algorithms
/
leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
1-bit-and-2-bit-characters.cpp
1-bit-and-2-bit-characters.cpp
132-pattern.cpp
132-pattern.cpp
3sum-closest.cpp
3sum-closest.cpp
3sum.cpp
3sum.cpp
4sum.cpp
4sum.cpp
add-binary.go
add-binary.go
add-digits.kt
add-digits.kt
add-two-numbers.cpp
add-two-numbers.cpp
adding-spaces-to-a-string.cpp
adding-spaces-to-a-string.cpp
airplane-seat-assignment-probability.cpp
airplane-seat-assignment-probability.cpp
alice-and-bob-playing-flower-game.cpp
alice-and-bob-playing-flower-game.cpp
all-paths-from-source-to-target.cpp
all-paths-from-source-to-target.cpp
apple-redistribution-into-boxes.cpp
apple-redistribution-into-boxes.cpp
arithmetic-slices.cpp
arithmetic-slices.cpp
arithmetic-subarrays.cpp
arithmetic-subarrays.cpp
arranging-coins.go
arranging-coins.go
array-partition.cpp
array-partition.cpp
assign-cookies.cpp
assign-cookies.cpp
balanced-binary-tree.js
balanced-binary-tree.js
basic-calculator.cpp
basic-calculator.cpp
beautiful-towers-i.cpp
beautiful-towers-i.cpp
beautiful-towers-ii.cpp
beautiful-towers-ii.cpp
best-sightseeing-pair.cpp
best-sightseeing-pair.cpp
best-time-to-buy-and-sell-stock.go
best-time-to-buy-and-sell-stock.go
binary-tree-inorder-traversal.go
binary-tree-inorder-traversal.go
binary-tree-paths.kt
binary-tree-paths.kt
binary-tree-postorder-traversal.cpp
binary-tree-postorder-traversal.cpp
binary-tree-preorder-traversal.cpp
binary-tree-preorder-traversal.cpp
build-a-matrix-with-conditions.cpp
build-a-matrix-with-conditions.cpp
bulb-switcher.cpp
bulb-switcher.cpp
burst-balloons.cpp
burst-balloons.cpp
bus-routes.cpp
bus-routes.cpp
button-with-longest-push-time.cpp
button-with-longest-push-time.cpp
can-i-win.cpp
can-i-win.cpp
candy.cpp
candy.cpp
car-fleet-2.cpp
car-fleet-2.cpp
car-fleet.cpp
car-fleet.cpp
car-pooling.cpp
car-pooling.cpp
check-if-all-1s-are-at-least-length-k-places-away.cpp
check-if-all-1s-are-at-least-length-k-places-away.cpp
check-if-binary-string-has-at-most-one-segment-of-ones.cpp
check-if-binary-string-has-at-most-one-segment-of-ones.cpp
check-if-number-is-a-sum-of-powers-of-three.cpp
check-if-number-is-a-sum-of-powers-of-three.cpp
check-if-point-is-reachable.cpp
check-if-point-is-reachable.cpp
check-if-strings-can-be-made-equal-with-operations-ii.cpp
check-if-strings-can-be-made-equal-with-operations-ii.cpp
check-if-the-rectangle-corner-is-reachable.cpp
check-if-the-rectangle-corner-is-reachable.cpp
cherry-pickup.cpp
cherry-pickup.cpp
circle-and-rectangle-overlapping.cpp
circle-and-rectangle-overlapping.cpp
climbing-stairs.rs
climbing-stairs.rs
combination-sum.cpp
combination-sum.cpp
combinations.cpp
combinations.cpp
concatenate-non-zero-digits-and-multiply-by-sum-i.cpp
concatenate-non-zero-digits-and-multiply-by-sum-i.cpp
construct-quad-tree.cpp
construct-quad-tree.cpp
container-with-most-water.cpp
container-with-most-water.cpp
contains-duplicate-ii.go
contains-duplicate-ii.go
contains-duplicate-iii.cpp
contains-duplicate-iii.cpp
contains-duplicate.go
contains-duplicate.go
convert-an-array-into-a-2d-array-with-conditions.go
convert-an-array-into-a-2d-array-with-conditions.go
convert-integer-to-the-sum-of-two-no-zero-integers.cpp
convert-integer-to-the-sum-of-two-no-zero-integers.cpp
count-and-say.cpp
count-and-say.cpp
count-integers-in-intervals.cpp
count-integers-in-intervals.cpp
count-lattice-points-inside-a-circle.cpp
count-lattice-points-inside-a-circle.cpp
count-number-of-homogenous-substrings.cpp
count-number-of-homogenous-substrings.cpp
count-number-of-pairs-with-absolute-difference-k.go
count-number-of-pairs-with-absolute-difference-k.go
count-number-of-rectangles-containing-each-point.cpp
count-number-of-rectangles-containing-each-point.cpp
count-number-of-teams.cpp
count-number-of-teams.cpp
count-number-of-trapezoids-i.cpp
count-number-of-trapezoids-i.cpp
count-special-triplets.cpp
count-special-triplets.cpp
count-the-number-of-special-characters-ii.cpp
count-the-number-of-special-characters-ii.cpp
count-total-number-of-colored-cells.cpp
count-total-number-of-colored-cells.cpp
counting-bits.cpp
counting-bits.cpp
daily-temperatures.cpp
daily-temperatures.cpp
delete-node-in-a-linked-list.go
delete-node-in-a-linked-list.go
delete-the-middle-node-of-a-linked-list.go
delete-the-middle-node-of-a-linked-list.go
delivering-boxes-from-storage-to-ports.cpp
delivering-boxes-from-storage-to-ports.cpp
describe-the-painting.cpp
describe-the-painting.cpp
destroying-asteroids.cpp
destroying-asteroids.cpp
determine-if-two-events-have-conflict.cpp
determine-if-two-events-have-conflict.cpp
detonate-the-maximum-bombs.cpp
detonate-the-maximum-bombs.cpp
diagonal-traverse.cpp
diagonal-traverse.cpp
dice-roll-simulation.cpp
dice-roll-simulation.cpp
distribute-elements-into-two-arrays-ii.cpp
distribute-elements-into-two-arrays-ii.cpp
divide-an-array-into-subarrays-with-minimum-cost-i.cpp
divide-an-array-into-subarrays-with-minimum-cost-i.cpp
divide-an-array-into-subarrays-with-minimum-cost-ii.cpp
divide-an-array-into-subarrays-with-minimum-cost-ii.cpp
divisor-game.cpp
divisor-game.cpp
dungeon-game.cpp
dungeon-game.cpp
earliest-finish-time-for-land-and-water-rides-i.cpp
earliest-finish-time-for-land-and-water-rides-i.cpp
earliest-possible-day-of-full-bloom.py
earliest-possible-day-of-full-bloom.py
equal-sum-grid-partition-i.cpp
equal-sum-grid-partition-i.cpp
escape-a-large-maze.cpp
escape-a-large-maze.cpp
escape-the-spreading-fire.cpp
escape-the-spreading-fire.cpp
falling-squares.cpp
falling-squares.cpp
final-prices-with-a-special-discount-in-a-shop.cpp
final-prices-with-a-special-discount-in-a-shop.cpp
find-all-numbers-disappeared-in-an-array.cpp
find-all-numbers-disappeared-in-an-array.cpp
find-center-of-star-graph.cpp
find-center-of-star-graph.cpp
find-first-and-last-position-of-element-in-sorted-array.cpp
find-first-and-last-position-of-element-in-sorted-array.cpp
find-if-path-exists-in-graph.cpp
find-if-path-exists-in-graph.cpp
find-in-mountain-array.cpp
find-in-mountain-array.cpp
find-k-closest-elements.cpp
find-k-closest-elements.cpp
find-maximum-area-of-a-triangle.cpp
find-maximum-area-of-a-triangle.cpp
find-minimum-in-rotated-sorted-array.cpp
find-minimum-in-rotated-sorted-array.cpp
find-n-unique-integers-sum-up-to-zero.cpp
find-n-unique-integers-sum-up-to-zero.cpp
View all files
You can’t perform that action at this time.