Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
ZackHoang
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
My solutions to Leetcode problems, using primarily Ruby
Resources
Readme
Activity
Stars
0
stars
Watchers
0
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
179 Commits
179 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
1036-rotting-oranges
1036-rotting-oranges
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
1046-max-consecutive-ones-iii
1046-max-consecutive-ones-iii
11-container-with-most-water
11-container-with-most-water
1116-maximum-level-sum-of-a-binary-tree
1116-maximum-level-sum-of-a-binary-tree
112-path-sum
112-path-sum
1146-greatest-common-divisor-of-strings
1146-greatest-common-divisor-of-strings
1153-product-sales-analysis-i
1153-product-sales-analysis-i
1231-replace-elements-with-greatest-element-on-right-side
1231-replace-elements-with-greatest-element-on-right-side
1258-article-views-i
1258-article-views-i
1319-unique-number-of-occurrences
1319-unique-number-of-occurrences
1321-get-equal-substrings-within-budget
1321-get-equal-substrings-within-budget
136-single-number
136-single-number
1392-find-the-difference-of-two-arrays
1392-find-the-difference-of-two-arrays
1426-find-n-unique-integers-sum-up-to-zero
1426-find-n-unique-integers-sum-up-to-zero
1474-longest-zigzag-path-in-a-binary-tree
1474-longest-zigzag-path-in-a-binary-tree
1509-replace-employee-id-with-the-unique-identifier
1509-replace-employee-id-with-the-unique-identifier
151-reverse-words-in-a-string
151-reverse-words-in-a-string
1528-kids-with-the-greatest-number-of-candies
1528-kids-with-the-greatest-number-of-candies
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1544-count-good-nodes-in-binary-tree
1544-count-good-nodes-in-binary-tree
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
1586-longest-subarray-of-1s-after-deleting-one-element
162-find-peak-element
162-find-peak-element
1666-make-the-string-great
1666-make-the-string-great
169-majority-element
169-majority-element
1724-customer-who-visited-but-did-not-make-any-transactions
1724-customer-who-visited-but-did-not-make-any-transactions
1777-determine-if-two-strings-are-close
1777-determine-if-two-strings-are-close
1781-check-if-two-string-arrays-are-equivalent
1781-check-if-two-string-arrays-are-equivalent
1798-max-number-of-k-sum-pairs
1798-max-number-of-k-sum-pairs
1827-invalid-tweets
1827-invalid-tweets
1833-find-the-highest-altitude
1833-find-the-highest-altitude
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
199-binary-tree-right-side-view
199-binary-tree-right-side-view
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
203-remove-linked-list-elements
203-remove-linked-list-elements
2038-nearest-exit-from-entrance-in-maze
2038-nearest-exit-from-entrance-in-maze
206-reverse-linked-list
206-reverse-linked-list
217-contains-duplicate
217-contains-duplicate
2216-delete-the-middle-node-of-a-linked-list
2216-delete-the-middle-node-of-a-linked-list
2236-maximum-twin-sum-of-a-linked-list
2236-maximum-twin-sum-of-a-linked-list
2245-destroying-asteroids
2245-destroying-asteroids
226-invert-binary-tree
226-invert-binary-tree
236-lowest-common-ancestor-of-a-binary-tree
236-lowest-common-ancestor-of-a-binary-tree
237-delete-node-in-a-linked-list
237-delete-node-in-a-linked-list
238-product-of-array-except-self
238-product-of-array-except-self
2392-successful-pairs-of-spells-and-potions
2392-successful-pairs-of-spells-and-potions
2428-equal-row-and-column-pairs
2428-equal-row-and-column-pairs
2470-removing-stars-from-a-string
2470-removing-stars-from-a-string
268-missing-number
268-missing-number
283-move-zeroes
283-move-zeroes
334-increasing-triplet-subsequence
334-increasing-triplet-subsequence
34-find-first-and-last-position-of-element-in-sorted-array
34-find-first-and-last-position-of-element-in-sorted-array
345-reverse-vowels-of-a-string
345-reverse-vowels-of-a-string
367-valid-perfect-square
367-valid-perfect-square
374-guess-number-higher-or-lower
374-guess-number-higher-or-lower
383-ransom-note
383-ransom-note
389-find-the-difference
389-find-the-difference
392-is-subsequence
392-is-subsequence
394-decode-string
394-decode-string
3965-earliest-finish-time-for-land-and-water-rides-i
3965-earliest-finish-time-for-land-and-water-rides-i
399-evaluate-division
399-evaluate-division
414-third-maximum-number
414-third-maximum-number
4256-construct-uniform-parity-array-i
4256-construct-uniform-parity-array-i
437-path-sum-iii
437-path-sum-iii
443-string-compression
443-string-compression
450-delete-node-in-a-bst
450-delete-node-in-a-bst
463-island-perimeter
463-island-perimeter
547-number-of-provinces
547-number-of-provinces
570-managers-with-at-least-5-direct-reports
570-managers-with-at-least-5-direct-reports
595-big-countries
595-big-countries
605-can-place-flowers
605-can-place-flowers
643-maximum-average-subarray-i
643-maximum-average-subarray-i
649-dota2-senate
649-dota2-senate
657-robot-return-to-origin
657-robot-return-to-origin
69-sqrtx
69-sqrtx
724-find-pivot-index
724-find-pivot-index
735-asteroid-collision
735-asteroid-collision
739-daily-temperatures
739-daily-temperatures
75-sort-colors
75-sort-colors
774-maximum-depth-of-n-ary-tree
774-maximum-depth-of-n-ary-tree
783-search-in-a-binary-search-tree
783-search-in-a-binary-search-tree
792-binary-search
792-binary-search
871-keys-and-rooms
871-keys-and-rooms
88-merge-sorted-array
88-merge-sorted-array
904-leaf-similar-trees
904-leaf-similar-trees
907-koko-eating-bananas
907-koko-eating-bananas
README.md
README.md
View all files
Repository files navigation
README
More
items
leetcode
My solutions to Leetcode problems, using primarily Ruby
About
My solutions to Leetcode problems, using primarily Ruby
Resources
Readme
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.