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 }}
charles-wangkai
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
17
Star
54
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
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
5,811 Commits
5,811 Commits
Sorry, we had to truncate this directory to 1,000 files. 2,974 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.