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
Type
/
to 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 }}
bigxiang
/
leetcode
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
216 Commits
216 Commits
1.two-sum
1.two-sum
100.same-tree
100.same-tree
1004.max-consecutive-ones-iii
1004.max-consecutive-ones-iii
101.symmetric-tree
101.symmetric-tree
102.binary-tree-level-order-traversal
102.binary-tree-level-order-traversal
1021.remove-outermost-parentheses
1021.remove-outermost-parentheses
1025.divisor-game
1025.divisor-game
103.binary-tree-zigzag-level-order-traversal
103.binary-tree-zigzag-level-order-traversal
104.maximum-depth-of-binary-tree
104.maximum-depth-of-binary-tree
1047.remove-all-adjacent-duplicates-in-string
1047.remove-all-adjacent-duplicates-in-string
105.construct-binary-tree-from-preorder-and-inorder-traversal
105.construct-binary-tree-from-preorder-and-inorder-traversal
1071.greatest-common-divisor-of-strings
1071.greatest-common-divisor-of-strings
108.convert-sorted-array-to-binary-search-tree
108.convert-sorted-array-to-binary-search-tree
1091.shortest-path-in-binary-matrix
1091.shortest-path-in-binary-matrix
11.container-with-most-water
11.container-with-most-water
110.balanced-binary-tree
110.balanced-binary-tree
1122.relative-sort-array
1122.relative-sort-array
113.path-sum-ii
113.path-sum-ii
1137.n-th-tribonacci-number
1137.n-th-tribonacci-number
1143.longest-common-subsequence
1143.longest-common-subsequence
1161.maximum-level-sum-of-a-binary-tree
1161.maximum-level-sum-of-a-binary-tree
119.pascals-triangle-ii
119.pascals-triangle-ii
120.triangle
120.triangle
1207.unique-number-of-occurrences
1207.unique-number-of-occurrences
121.best-time-to-buy-and-sell-stock
121.best-time-to-buy-and-sell-stock
122.best-time-to-buy-and-sell-stock-ii
122.best-time-to-buy-and-sell-stock-ii
123.best-time-to-buy-and-sell-stock-iii
123.best-time-to-buy-and-sell-stock-iii
125.valid-palindrome
125.valid-palindrome
126.word-ladder-ii
126.word-ladder-ii
1268.search-suggestions-system
1268.search-suggestions-system
127.word-ladder
127.word-ladder
1278.palindrome-partitioning-iii
1278.palindrome-partitioning-iii
128.longest-consecutive-sequence
128.longest-consecutive-sequence
1287.element-appearing-more-than-25-in-sorted-array
1287.element-appearing-more-than-25-in-sorted-array
1299.replace-elements-with-greatest-element-on-right-side
1299.replace-elements-with-greatest-element-on-right-side
13.roman-to-integer
13.roman-to-integer
130.surrounded-regions
130.surrounded-regions
131.palindrome-partitioning
131.palindrome-partitioning
1318.minimum-flips-to-make-a-or-b-equal-to-c
1318.minimum-flips-to-make-a-or-b-equal-to-c
132.palindrome-partitioning-ii
132.palindrome-partitioning-ii
1328.break-a-palindrome
1328.break-a-palindrome
133.clone-graph
133.clone-graph
134.gas-station
134.gas-station
1343.number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
1343.number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
136.single-number
136.single-number
1366.rank-teams-by-votes
1366.rank-teams-by-votes
1367.linked-list-in-binary-tree
1367.linked-list-in-binary-tree
1372.longest-zig-zag-path-in-a-binary-tree
1372.longest-zig-zag-path-in-a-binary-tree
139.word-break
139.word-break
14.longest-common-prefix
14.longest-common-prefix
1401.circle-and-rectangle-overlapping
1401.circle-and-rectangle-overlapping
141.linked-list-cycle
141.linked-list-cycle
143.reorder-list
143.reorder-list
1431.kids-with-the-greatest-number-of-candies
1431.kids-with-the-greatest-number-of-candies
144.binary-tree-preorder-traversal
144.binary-tree-preorder-traversal
1448.count-good-nodes-in-binary-tree
1448.count-good-nodes-in-binary-tree
145.binary-tree-postorder-traversal
145.binary-tree-postorder-traversal
1456.maximum-number-of-vowels-in-a-substring-of-given-length
1456.maximum-number-of-vowels-in-a-substring-of-given-length
146.lru-cache
146.lru-cache
1466.reorder-routes-to-make-all-paths-lead-to-the-city-zero
1466.reorder-routes-to-make-all-paths-lead-to-the-city-zero
148.sort-list
148.sort-list
1493.longest-subarray-of-1-s-after-deleting-one-element
1493.longest-subarray-of-1-s-after-deleting-one-element
15.3-sum
15.3-sum
150.evaluate-reverse-polish-notation
150.evaluate-reverse-polish-notation
151.reverse-words-in-a-string
151.reverse-words-in-a-string
152.maximum-product-subarray
152.maximum-product-subarray
153.find-minimum-in-rotated-sorted-array
153.find-minimum-in-rotated-sorted-array
154.find-minimum-in-rotated-sorted-array-ii
154.find-minimum-in-rotated-sorted-array-ii
155.min-stack
155.min-stack
1552.magnetic-force-between-two-balls
1552.magnetic-force-between-two-balls
1561.maximum-number-of-coins-you-can-get
1561.maximum-number-of-coins-you-can-get
16.3-sum-closest
16.3-sum-closest
162.find-peak-element
162.find-peak-element
1657.determine-if-two-strings-are-close
1657.determine-if-two-strings-are-close
167.two-sum-ii-input-array-is-sorted
167.two-sum-ii-input-array-is-sorted
1679.max-number-of-k-sum-pairs
1679.max-number-of-k-sum-pairs
169.majority-element
169.majority-element
17.letter-combinations-of-a-phone-number
17.letter-combinations-of-a-phone-number
1706.where-will-the-ball-fall
1706.where-will-the-ball-fall
1732.find-the-highest-altitude
1732.find-the-highest-altitude
1742.maximum-number-of-balls-in-a-box
1742.maximum-number-of-balls-in-a-box
1745.palindrome-partitioning-iv
1745.palindrome-partitioning-iv
1768.merge-strings-alternately
1768.merge-strings-alternately
179.largest-number
179.largest-number
18.4-sum
18.4-sum
188.best-time-to-buy-and-sell-stock-iv
188.best-time-to-buy-and-sell-stock-iv
189.rotate-array
189.rotate-array
19.remove-nth-node-from-end-of-list
19.remove-nth-node-from-end-of-list
190.reverse-bits
190.reverse-bits
191.number-of-1-bits
191.number-of-1-bits
1926.nearest-exit-from-entrance-in-maze
1926.nearest-exit-from-entrance-in-maze
1963.minimum-number-of-swaps-to-make-the-string-balanced
1963.minimum-number-of-swaps-to-make-the-string-balanced
198.house-robber
198.house-robber
199.binary-tree-right-side-view
199.binary-tree-right-side-view
2.add-two-numbers
2.add-two-numbers
20.valid-parentheses
20.valid-parentheses
200.number-of-islands
200.number-of-islands
205.isomorphic-strings
205.isomorphic-strings
206.reverse-linked-list
206.reverse-linked-list
207.course-schedule
207.course-schedule
View all files
Repository files navigation
README
MIT license
More
items
leetcode
About
Solving LeetCode challenges using Ruby for fun
Resources
Readme
MIT license
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.