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 }}
fanfank
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
93
(
93
)
Star
171
(
171
)
You must be signed in to star a repository
About
Greatness from Basis comes
Resources
Readme
Activity
Stars
171
stars
Watchers
35
watching
Forks
93
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
75 Commits
75 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.gitignore
.gitignore
3sum-closest.cpp
3sum-closest.cpp
3sum.cpp
3sum.cpp
4sum.cpp
4sum.cpp
add-and-search-word-data-structure-design.cpp
add-and-search-word-data-structure-design.cpp
add-binary.cpp
add-binary.cpp
add-two-numbers.cpp
add-two-numbers.cpp
anagrams.cpp
anagrams.cpp
balanced-binary-tree.cpp
balanced-binary-tree.cpp
best-time-to-buy-and-sell-stock-ii.cpp
best-time-to-buy-and-sell-stock-ii.cpp
best-time-to-buy-and-sell-stock-iii.cpp
best-time-to-buy-and-sell-stock-iii.cpp
best-time-to-buy-and-sell-stock-iv.cpp
best-time-to-buy-and-sell-stock-iv.cpp
best-time-to-buy-and-sell-stock.cpp
best-time-to-buy-and-sell-stock.cpp
binary-search-tree-iterator.cpp
binary-search-tree-iterator.cpp
binary-tree-inorder-traversal.cpp
binary-tree-inorder-traversal.cpp
binary-tree-level-order-traversal-ii.cpp
binary-tree-level-order-traversal-ii.cpp
binary-tree-level-order-traversal.cpp
binary-tree-level-order-traversal.cpp
binary-tree-maximum-path-sum.cpp
binary-tree-maximum-path-sum.cpp
binary-tree-paths.cpp
binary-tree-paths.cpp
binary-tree-postorder-traversal.cpp
binary-tree-postorder-traversal.cpp
binary-tree-preorder-traversal.cpp
binary-tree-preorder-traversal.cpp
binary-tree-right-side-view.cpp
binary-tree-right-side-view.cpp
binary-tree-zigzag-level-order-traversal.cpp
binary-tree-zigzag-level-order-traversal.cpp
bitwise-and-of-numbers-range.cpp
bitwise-and-of-numbers-range.cpp
candy.cpp
candy.cpp
climbing-stairs.cpp
climbing-stairs.cpp
clone-graph.cpp
clone-graph.cpp
combination-sum-ii.cpp
combination-sum-ii.cpp
combination-sum-iii.cpp
combination-sum-iii.cpp
combination-sum.cpp
combination-sum.cpp
combinations.cpp
combinations.cpp
compare-version-numbers.cpp
compare-version-numbers.cpp
construct-binary-tree-from-inorder-and-postorder-traversal.cpp
construct-binary-tree-from-inorder-and-postorder-traversal.cpp
construct-binary-tree-from-preorder-and-inorder-traversal.cpp
construct-binary-tree-from-preorder-and-inorder-traversal.cpp
container-with-most-water.cpp
container-with-most-water.cpp
contains-duplicate-ii.cpp
contains-duplicate-ii.cpp
contains-duplicate-iii.cpp
contains-duplicate-iii.cpp
contains-duplicate.cpp
contains-duplicate.cpp
convert-sorted-array-to-binary-search-tree.cpp
convert-sorted-array-to-binary-search-tree.cpp
convert-sorted-list-to-binary-search-tree.cpp
convert-sorted-list-to-binary-search-tree.cpp
copy-list-with-random-pointer.cpp
copy-list-with-random-pointer.cpp
count-and-say.cpp
count-and-say.cpp
count-complete-tree-nodes.cpp
count-complete-tree-nodes.cpp
count-primes.cpp
count-primes.cpp
course-schedule-ii.cpp
course-schedule-ii.cpp
course-schedule.cpp
course-schedule.cpp
decode-ways.cpp
decode-ways.cpp
delete-node-in-a-linked-list.cpp
delete-node-in-a-linked-list.cpp
distinct-subsequences.cpp
distinct-subsequences.cpp
divide-two-integers.cpp
divide-two-integers.cpp
dungeon-game.cpp
dungeon-game.cpp
edit-distance.cpp
edit-distance.cpp
evaluate-reverse-polish-notation.cpp
evaluate-reverse-polish-notation.cpp
excel-sheet-column-number.cpp
excel-sheet-column-number.cpp
excel-sheet-column-title.cpp
excel-sheet-column-title.cpp
factorial-trailing-zeroes.cpp
factorial-trailing-zeroes.cpp
find-minimum-in-rotated-sorted-array-ii.cpp
find-minimum-in-rotated-sorted-array-ii.cpp
find-minimum-in-rotated-sorted-array.cpp
find-minimum-in-rotated-sorted-array.cpp
find-peak-element.cpp
find-peak-element.cpp
first-missing-positive.cpp
first-missing-positive.cpp
flatten-binary-tree-to-linked-list.cpp
flatten-binary-tree-to-linked-list.cpp
fraction-to-recurring-decimal.cpp
fraction-to-recurring-decimal.cpp
gas-station.cpp
gas-station.cpp
generate-parenthese.cpp
generate-parenthese.cpp
gray-code.cpp
gray-code.cpp
happy-number.cpp
happy-number.cpp
house-robber-ii.cpp
house-robber-ii.cpp
house-robber.cpp
house-robber.cpp
implement-queue-using-stacks.cpp
implement-queue-using-stacks.cpp
implement-stack-using-queues.cpp
implement-stack-using-queues.cpp
implement-strstr.cpp
implement-strstr.cpp
implement-trie-prefix-tree.cpp
implement-trie-prefix-tree.cpp
insert-interval.cpp
insert-interval.cpp
insertion-sort-list.cpp
insertion-sort-list.cpp
integer-break.cpp
integer-break.cpp
integer-to-roman.cpp
integer-to-roman.cpp
interleaving-string.cpp
interleaving-string.cpp
intersection-of-two-linked-lists.cpp
intersection-of-two-linked-lists.cpp
invert-binary-tree.cpp
invert-binary-tree.cpp
isomorphic-strings.cpp
isomorphic-strings.cpp
jump-game-ii.cpp
jump-game-ii.cpp
jump-game.cpp
jump-game.cpp
kth-largest-element-in-an-array.cpp
kth-largest-element-in-an-array.cpp
kth-smallest-element-in-a-bst.cpp
kth-smallest-element-in-a-bst.cpp
largest-number.cpp
largest-number.cpp
largest-rectangle-in-histogram.cpp
largest-rectangle-in-histogram.cpp
length-of-last-word.cpp
length-of-last-word.cpp
letter-combinations-of-a-phone-number.cpp
letter-combinations-of-a-phone-number.cpp
linked-list-cycle-ii.cpp
linked-list-cycle-ii.cpp
linked-list-cycle.cpp
linked-list-cycle.cpp
longest-common-prefix.cpp
longest-common-prefix.cpp
longest-consecutive-sequence.cpp
longest-consecutive-sequence.cpp
longest-palindromic-substring.cpp
longest-palindromic-substring.cpp
longest-substring-without-repeating-characters.cpp
longest-substring-without-repeating-characters.cpp
longest-valid-parentheses.cpp
longest-valid-parentheses.cpp
lowest-common-ancestor-of-a-binary-search-tree.cpp
lowest-common-ancestor-of-a-binary-search-tree.cpp
lowest-common-ancestor-of-a-binary-tree.cpp
lowest-common-ancestor-of-a-binary-tree.cpp
lru-cache.cpp
lru-cache.cpp
majority-element-ii.cpp
majority-element-ii.cpp
majority-element.cpp
majority-element.cpp
View all files
Repository files navigation
README
More
items
Greatness from Basis comes
Finished 214/374
Reetsee.Xu last updated on 2016.09.04
About
Greatness from Basis comes
Resources
Readme
Activity
Stars
171
stars
Watchers
35
watching
Forks
93
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.