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
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 }}
gabeknob
/
leet-code
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
9 Commits
9 Commits
.gitignore
.gitignore
0001-two-sum.cpp
0001-two-sum.cpp
0002-add-two-numbers.cpp
0002-add-two-numbers.cpp
0003-longest-substring-without-repeating-characters.cpp
0003-longest-substring-without-repeating-characters.cpp
0009-palindrome-number.cpp
0009-palindrome-number.cpp
0011-container-with-most-water.cpp
0011-container-with-most-water.cpp
0017-letter-combination-of-a-phone-number.cpp
0017-letter-combination-of-a-phone-number.cpp
0020-valid-parentheses.cpp
0020-valid-parentheses.cpp
0039-combination-sum.cpp
0039-combination-sum.cpp
0040-combination-sum-ii.cpp
0040-combination-sum-ii.cpp
0046-permutations.cpp
0046-permutations.cpp
0047-permutations-ii.cpp
0047-permutations-ii.cpp
0069-sqrt-x.cpp
0069-sqrt-x.cpp
0078-subsets.cpp
0078-subsets.cpp
0090-subsets-ii.cpp
0090-subsets-ii.cpp
0104-maximum-depth-of-binary-tree-ALT_iterative.cpp
0104-maximum-depth-of-binary-tree-ALT_iterative.cpp
0104-maximum-depth-of-binary-tree.cpp
0104-maximum-depth-of-binary-tree.cpp
0121-best-time-to-buy-and-sell-stock.cpp
0121-best-time-to-buy-and-sell-stock.cpp
0151-reverse-words-in-a-string.cpp
0151-reverse-words-in-a-string.cpp
0199-binary-tree-right-side-view.cpp
0199-binary-tree-right-side-view.cpp
0206-reverse-linked-list.cpp
0206-reverse-linked-list.cpp
0209-minimum-size-subarray-sum.cpp
0209-minimum-size-subarray-sum.cpp
0215-kth-largest-element-in-an-array.cpp
0215-kth-largest-element-in-an-array.cpp
0216-combination-sum-iii.cpp
0216-combination-sum-iii.cpp
0238-product-of-array-except-self.cpp
0238-product-of-array-except-self.cpp
0283-move-zeroes.cpp
0283-move-zeroes.cpp
0295-find-meadian-from-data-stream.cpp
0295-find-meadian-from-data-stream.cpp
0328-odd-even-linked-list.cpp
0328-odd-even-linked-list.cpp
0345-reverse-vowels-of-a-string.cpp
0345-reverse-vowels-of-a-string.cpp
0374-guess-number.cpp
0374-guess-number.cpp
0377-combination-sum-iv.cpp
0377-combination-sum-iv.cpp
0392-is-subsequence.cpp
0392-is-subsequence.cpp
0424-longest-repeating-character-replacement.cpp
0424-longest-repeating-character-replacement.cpp
0443-string-compression.cpp
0443-string-compression.cpp
0450-delete-node-in-a-bst.cpp
0450-delete-node-in-a-bst.cpp
0525-contiguous-array.cpp
0525-contiguous-array.cpp
0560-subarray-sum-equals-k.cpp
0560-subarray-sum-equals-k.cpp
0643-maximum-average-subarray-I.cpp
0643-maximum-average-subarray-I.cpp
0700-search-in-a-binary-search-tree-ALT_iterative.cpp
0700-search-in-a-binary-search-tree-ALT_iterative.cpp
0700-search-in-a-binary-search-tree.cpp
0700-search-in-a-binary-search-tree.cpp
0713-subarray-product-less-than-k.cpp
0713-subarray-product-less-than-k.cpp
0724-find-pivot-index.cpp
0724-find-pivot-index.cpp
0784-letter-case-permutation-ALT_full_recursive.cpp
0784-letter-case-permutation-ALT_full_recursive.cpp
0784-letter-case-permutation.cpp
0784-letter-case-permutation.cpp
0841-keys-and-rooms.cpp
0841-keys-and-rooms.cpp
0872-leaf-similar-trees.cpp
0872-leaf-similar-trees.cpp
0904-fruit-into-baskets.cpp
0904-fruit-into-baskets.cpp
0973-k-closes-points-to-origin.cpp
0973-k-closes-points-to-origin.cpp
0974-subarray-sums-divisible-by-k.cpp
0974-subarray-sums-divisible-by-k.cpp
0994-rotting-oranges.cpp
0994-rotting-oranges.cpp
1004-max-consecutive-ones-iii.cpp
1004-max-consecutive-ones-iii.cpp
1071-greatest-common-divisor-of-strings.cpp
1071-greatest-common-divisor-of-strings.cpp
1161-maximum-level-sum-of-a-binary-tree-ALT_recursive.cpp
1161-maximum-level-sum-of-a-binary-tree-ALT_recursive.cpp
1161-maximum-level-sum-of-a-binary-tree.cpp
1161-maximum-level-sum-of-a-binary-tree.cpp
1372-longest-zigzag-path-in-a-binary-tree.cpp
1372-longest-zigzag-path-in-a-binary-tree.cpp
1431-kids-with-the-greatest-number-of-candies.cpp
1431-kids-with-the-greatest-number-of-candies.cpp
1448-count-good-nodes-in-binary-tree-ALT_recursive.cpp
1448-count-good-nodes-in-binary-tree-ALT_recursive.cpp
1448-count-good-nodes-in-binary-tree.cpp
1448-count-good-nodes-in-binary-tree.cpp
1456-maximum-number-of-vowels-in-a-substring-of-given-length.cpp
1456-maximum-number-of-vowels-in-a-substring-of-given-length.cpp
1493-longest-subarray-of-1s-after-deleting-one-element.cpp
1493-longest-subarray-of-1s-after-deleting-one-element.cpp
1590-make-sum-divisible-by-p.cpp
1590-make-sum-divisible-by-p.cpp
1679-max-number-of-k-sum-pairs.cpp
1679-max-number-of-k-sum-pairs.cpp
1732-find-the-highest-altitude.cpp
1732-find-the-highest-altitude.cpp
1768-merge-strings-alternatively.cpp
1768-merge-strings-alternatively.cpp
1926-nearest-exit-from-entrance-maze.cpp
1926-nearest-exit-from-entrance-maze.cpp
2090-k-kradius-subarray-averages.cpp
2090-k-kradius-subarray-averages.cpp
2615-sum-of-distances.cpp
2615-sum-of-distances.cpp
2833-furthest-point-from-origin.cpp
2833-furthest-point-from-origin.cpp
2946-matrix-similar-after-cyclic-shifts.cpp
2946-matrix-similar-after-cyclic-shifts.cpp
3254-find-the-power-of-k-size-subarrays-i.cpp
3254-find-the-power-of-k-size-subarrays-i.cpp
3318-find-x-sum-of-all-k-long-subarrays-i.cpp
3318-find-x-sum-of-all-k-long-subarrays-i.cpp
3880-minimum-absolute-difference-between-two-values.cpp
3880-minimum-absolute-difference-between-two-values.cpp
3894-traffic-signal-color.cpp
3894-traffic-signal-color.cpp
3895-count-digit-appearances.cpp
3895-count-digit-appearances.cpp
3896-minimum-operations-to-transform-array-into-alternating-prime.cpp
3896-minimum-operations-to-transform-array-into-alternating-prime.cpp
3897-maximum-value-of-concatenated-binary-segments.cpp
3897-maximum-value-of-concatenated-binary-segments.cpp
View all files
About
A compilation of leet code solutions
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.