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
Events
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 }}
charles-wangkai
leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
17
(
17
)
Star
54
(
54
)
You must be signed in to star a repository
About
My LeetCode solutions
leetcode.com/goalboy
Resources
Readme
Activity
Stars
54
stars
Watchers
4
watching
Forks
17
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
5,964 Commits
5,964 Commits
Folders and files
Name
Name
Last commit message
Last commit date
Sorry, we had to truncate this directory to 1,000 files. 3,079 entries were omitted from the list.
01-matrix
01-matrix
1-bit-and-2-bit-characters
1-bit-and-2-bit-characters
132-pattern
132-pattern
2-keys-keyboard
2-keys-keyboard
24-game
24-game
3sum-closest
3sum-closest
3sum-smaller
3sum-smaller
3sum-with-multiplicity
3sum-with-multiplicity
3sum
3sum
4-keys-keyboard
4-keys-keyboard
4sum-ii
4sum-ii
4sum
4sum
a-number-after-a-double-reversal
a-number-after-a-double-reversal
abbreviating-the-product-of-a-range
abbreviating-the-product-of-a-range
absolute-difference-between-maximum-and-minimum-k-elements
absolute-difference-between-maximum-and-minimum-k-elements
account-balance-after-rounded-purchase
account-balance-after-rounded-purchase
accounts-merge
accounts-merge
add-and-search-word-data-structure-design
add-and-search-word-data-structure-design
add-binary
add-binary
add-bold-tag-in-string
add-bold-tag-in-string
add-digits
add-digits
add-edges-to-make-degrees-of-all-nodes-even
add-edges-to-make-degrees-of-all-nodes-even
add-minimum-number-of-rungs
add-minimum-number-of-rungs
add-one-row-to-tree
add-one-row-to-tree
add-strings
add-strings
add-to-array-form-of-integer
add-to-array-form-of-integer
add-two-integers
add-two-integers
add-two-numbers-ii
add-two-numbers-ii
add-two-numbers
add-two-numbers
add-two-polynomials-represented-as-linked-lists
add-two-polynomials-represented-as-linked-lists
adding-spaces-to-a-string
adding-spaces-to-a-string
adding-two-negabinary-numbers
adding-two-negabinary-numbers
additive-number
additive-number
adjacent-increasing-subarrays-detection-i
adjacent-increasing-subarrays-detection-i
adjacent-increasing-subarrays-detection-ii
adjacent-increasing-subarrays-detection-ii
advantage-shuffle
advantage-shuffle
aggregate-two-time-series
aggregate-two-time-series
airplane-seat-assignment-probability
airplane-seat-assignment-probability
alert-using-same-key-card-three-or-more-times-in-a-one-hour-period
alert-using-same-key-card-three-or-more-times-in-a-one-hour-period
alice-and-bob-playing-flower-game
alice-and-bob-playing-flower-game
alien-dictionary
alien-dictionary
all-ancestors-of-a-node-in-a-directed-acyclic-graph
all-ancestors-of-a-node-in-a-directed-acyclic-graph
all-divisions-with-the-highest-score-of-a-binary-array
all-divisions-with-the-highest-score-of-a-binary-array
all-elements-in-two-binary-search-trees
all-elements-in-two-binary-search-trees
all-nodes-distance-k-in-binary-tree
all-nodes-distance-k-in-binary-tree
all-oone-data-structure
all-oone-data-structure
all-paths-from-source-lead-to-destination
all-paths-from-source-lead-to-destination
all-paths-from-source-to-target
all-paths-from-source-to-target
all-possible-full-binary-trees
all-possible-full-binary-trees
allocate-mailboxes
allocate-mailboxes
alphabet-board-path
alphabet-board-path
alt-and-tab-simulation
alt-and-tab-simulation
alternating-digit-sum
alternating-digit-sum
alternating-groups-i
alternating-groups-i
alternating-groups-ii
alternating-groups-ii
alternating-groups-iii
alternating-groups-iii
ambiguous-coordinates
ambiguous-coordinates
amount-of-new-area-painted-each-day
amount-of-new-area-painted-each-day
amount-of-time-for-binary-tree-to-be-infected
amount-of-time-for-binary-tree-to-be-infected
analyze-user-website-visit-pattern
analyze-user-website-visit-pattern
android-unlock-patterns
android-unlock-patterns
angle-between-hands-of-a-clock
angle-between-hands-of-a-clock
angles-of-a-triangle
angles-of-a-triangle
ant-on-the-boundary
ant-on-the-boundary
append-characters-to-string-to-make-subsequence
append-characters-to-string-to-make-subsequence
append-k-integers-with-minimal-sum
append-k-integers-with-minimal-sum
apple-redistribution-into-boxes
apple-redistribution-into-boxes
apply-bitwise-operations-to-make-strings-equal
apply-bitwise-operations-to-make-strings-equal
apply-discount-every-n-orders
apply-discount-every-n-orders
apply-discount-to-prices
apply-discount-to-prices
apply-operations-on-array-to-maximize-sum-of-squares
apply-operations-on-array-to-maximize-sum-of-squares
apply-operations-to-an-array
apply-operations-to-an-array
apply-operations-to-make-all-array-elements-equal-to-zero
apply-operations-to-make-all-array-elements-equal-to-zero
apply-operations-to-make-string-empty
apply-operations-to-make-string-empty
apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k
apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k
apply-operations-to-make-two-strings-equal
apply-operations-to-make-two-strings-equal
apply-operations-to-maximize-frequency-score
apply-operations-to-maximize-frequency-score
apply-operations-to-maximize-score
apply-operations-to-maximize-score
apply-substitutions
apply-substitutions
arithmetic-slices-ii-subsequence
arithmetic-slices-ii-subsequence
arithmetic-slices
arithmetic-slices
arithmetic-subarrays
arithmetic-subarrays
armstrong-number
armstrong-number
arranging-coins
arranging-coins
array-nesting
array-nesting
array-of-doubled-pairs
array-of-doubled-pairs
array-partition-i
array-partition-i
array-transformation
array-transformation
array-with-elements-not-equal-to-average-of-neighbors
array-with-elements-not-equal-to-average-of-neighbors
as-far-from-land-as-possible
as-far-from-land-as-possible
assign-cookies
assign-cookies
assign-elements-to-groups-with-constraints
assign-elements-to-groups-with-constraints
asteroid-collision
asteroid-collision
available-captures-for-rook
available-captures-for-rook
average-height-of-buildings-in-each-segment
average-height-of-buildings-in-each-segment
average-of-levels-in-binary-tree
average-of-levels-in-binary-tree
average-salary-excluding-the-minimum-and-maximum-salary
average-salary-excluding-the-minimum-and-maximum-salary
average-value-of-even-numbers-that-are-divisible-by-three
average-value-of-even-numbers-that-are-divisible-by-three
average-waiting-time
average-waiting-time
avoid-flood-in-the-city
avoid-flood-in-the-city
View all files
Repository files navigation
README
More
items
leetcode
About
My LeetCode solutions
leetcode.com/goalboy
Resources
Readme
Activity
Stars
54
stars
Watchers
4
watching
Forks
17
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.