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 }}
CSUwangj
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
No description, website, or topics provided.
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
77 Commits
77 Commits
Folders and files
Name
Name
Last commit message
Last commit date
Sorry, we had to truncate this directory to 1,000 files. 418 entries were omitted from the list.
.vscode
.vscode
.gitignore
.gitignore
1.two-sum.cpp
1.two-sum.cpp
100.same-tree.cpp
100.same-tree.cpp
1004.max-consecutive-ones-iii.cpp
1004.max-consecutive-ones-iii.cpp
1007.minimum-domino-rotations-for-equal-row.cpp
1007.minimum-domino-rotations-for-equal-row.cpp
1008.construct-binary-search-tree-from-preorder-traversal.cpp
1008.construct-binary-search-tree-from-preorder-traversal.cpp
1009.complement-of-base-10-integer.cpp
1009.complement-of-base-10-integer.cpp
101.symmetric-tree.cpp
101.symmetric-tree.cpp
1010.pairs-of-songs-with-total-durations-divisible-by-60.cpp
1010.pairs-of-songs-with-total-durations-divisible-by-60.cpp
1011.capacity-to-ship-packages-within-d-days.cpp
1011.capacity-to-ship-packages-within-d-days.cpp
1014.best-sightseeing-pair.cpp
1014.best-sightseeing-pair.cpp
1015.smallest-integer-divisible-by-k.2.cpp
1015.smallest-integer-divisible-by-k.2.cpp
1015.smallest-integer-divisible-by-k.3.cpp
1015.smallest-integer-divisible-by-k.3.cpp
1015.smallest-integer-divisible-by-k.cpp
1015.smallest-integer-divisible-by-k.cpp
102.binary-tree-level-order-traversal.cpp
102.binary-tree-level-order-traversal.cpp
1020.number-of-enclaves.cpp
1020.number-of-enclaves.cpp
1022.sum-of-root-to-leaf-binary-numbers.cpp
1022.sum-of-root-to-leaf-binary-numbers.cpp
1026.maximum-difference-between-node-and-ancestor.cpp
1026.maximum-difference-between-node-and-ancestor.cpp
1027.longest-arithmetic-subsequence.2.cpp
1027.longest-arithmetic-subsequence.2.cpp
1027.longest-arithmetic-subsequence.TLE.cpp
1027.longest-arithmetic-subsequence.TLE.cpp
1027.longest-arithmetic-subsequence.cpp
1027.longest-arithmetic-subsequence.cpp
1028.recover-a-tree-from-preorder-traversal.cpp
1028.recover-a-tree-from-preorder-traversal.cpp
1029.two-city-scheduling.cpp
1029.two-city-scheduling.cpp
103.binary-tree-zigzag-level-order-traversal.cpp
103.binary-tree-zigzag-level-order-traversal.cpp
1032.stream-of-characters.SAM.TODO.cpp
1032.stream-of-characters.SAM.TODO.cpp
1032.stream-of-characters.hash.2.cpp
1032.stream-of-characters.hash.2.cpp
1032.stream-of-characters.hash.cpp
1032.stream-of-characters.hash.cpp
1032.stream-of-characters.trie.2.cpp
1032.stream-of-characters.trie.2.cpp
1032.stream-of-characters.trie.3.cpp
1032.stream-of-characters.trie.3.cpp
1032.stream-of-characters.trie.cpp
1032.stream-of-characters.trie.cpp
1035.uncrossed-lines.2.cpp
1035.uncrossed-lines.2.cpp
1035.uncrossed-lines.cpp
1035.uncrossed-lines.cpp
1038.binary-search-tree-to-greater-sum-tree.cpp
1038.binary-search-tree-to-greater-sum-tree.cpp
104.maximum-depth-of-binary-tree.cpp
104.maximum-depth-of-binary-tree.cpp
1041.robot-bounded-in-circle.cpp
1041.robot-bounded-in-circle.cpp
1043.partition-array-for-maximum-sum.cpp
1043.partition-array-for-maximum-sum.cpp
1044.longest-duplicate-substring.MLE.cpp
1044.longest-duplicate-substring.MLE.cpp
1044.longest-duplicate-substring.TLE.cpp
1044.longest-duplicate-substring.TLE.cpp
1044.longest-duplicate-substring.cpp
1044.longest-duplicate-substring.cpp
1046.last-stone-weight.2.cpp
1046.last-stone-weight.2.cpp
1046.last-stone-weight.cpp
1046.last-stone-weight.cpp
1047.remove-all-adjacent-duplicates-in-string.cpp
1047.remove-all-adjacent-duplicates-in-string.cpp
1048.longest-string-chain.cpp
1048.longest-string-chain.cpp
105.construct-binary-tree-from-preorder-and-inorder-traversal.cpp
105.construct-binary-tree-from-preorder-and-inorder-traversal.cpp
106.construct-binary-tree-from-inorder-and-postorder-traversal.cpp
106.construct-binary-tree-from-inorder-and-postorder-traversal.cpp
1061.lexicographically-smallest-equivalent-string.cpp
1061.lexicographically-smallest-equivalent-string.cpp
107.binary-tree-level-order-traversal-ii.cpp
107.binary-tree-level-order-traversal-ii.cpp
1071.greatest-common-divisor-of-strings.cpp
1071.greatest-common-divisor-of-strings.cpp
1074.number-of-submatrices-that-sum-to-target.cpp
1074.number-of-submatrices-that-sum-to-target.cpp
1079.letter-tile-possibilities.cpp
1079.letter-tile-possibilities.cpp
108.convert-sorted-array-to-binary-search-tree.cpp
108.convert-sorted-array-to-binary-search-tree.cpp
1081.smallest-subsequence-of-distinct-characters.cpp
1081.smallest-subsequence-of-distinct-characters.cpp
109.convert-sorted-list-to-binary-search-tree.cpp
109.convert-sorted-list-to-binary-search-tree.cpp
1091.shortest-path-in-binary-matrix.cpp
1091.shortest-path-in-binary-matrix.cpp
1092.shortest-common-supersequence.WA.cpp
1092.shortest-common-supersequence.WA.cpp
1092.shortest-common-supersequence.cpp
1092.shortest-common-supersequence.cpp
1094.car-pooling.cpp
1094.car-pooling.cpp
1095.find-in-mountain-array.cpp
1095.find-in-mountain-array.cpp
1096.brace-expansion-ii.2.cpp
1096.brace-expansion-ii.2.cpp
1096.brace-expansion-ii.3.cpp
1096.brace-expansion-ii.3.cpp
1096.brace-expansion-ii.cpp
1096.brace-expansion-ii.cpp
11.container-with-most-water.cpp
11.container-with-most-water.cpp
1108.defanging-an-ip-address.cpp
1108.defanging-an-ip-address.cpp
111.minimum-depth-of-binary-tree.cpp
111.minimum-depth-of-binary-tree.cpp
112.path-sum.cpp
112.path-sum.cpp
1123.lowest-common-ancestor-of-deepest-leaves.cpp
1123.lowest-common-ancestor-of-deepest-leaves.cpp
1125.smallest-sufficient-team.cpp
1125.smallest-sufficient-team.cpp
1128.number-of-equivalent-domino-pairs.cpp
1128.number-of-equivalent-domino-pairs.cpp
1129.shortest-path-with-alternating-colors.cpp
1129.shortest-path-with-alternating-colors.cpp
113.path-sum-ii.cpp
113.path-sum-ii.cpp
1137.n-th-tribonacci-number.cpp
1137.n-th-tribonacci-number.cpp
114.flatten-binary-tree-to-linked-list.2.cpp
114.flatten-binary-tree-to-linked-list.2.cpp
114.flatten-binary-tree-to-linked-list.cpp
114.flatten-binary-tree-to-linked-list.cpp
1140.stone-game-ii.2.cpp
1140.stone-game-ii.2.cpp
1140.stone-game-ii.3.cpp
1140.stone-game-ii.3.cpp
1140.stone-game-ii.4.cpp
1140.stone-game-ii.4.cpp
1140.stone-game-ii.cpp
1140.stone-game-ii.cpp
1143.longest-common-subsequence.cpp
1143.longest-common-subsequence.cpp
1146.snapshot-array.cpp
1146.snapshot-array.cpp
115.distinct-subsequences.cpp
115.distinct-subsequences.cpp
1155.number-of-dice-rolls-with-target-sum.cpp
1155.number-of-dice-rolls-with-target-sum.cpp
116.populating-next-right-pointers-in-each-node.cpp
116.populating-next-right-pointers-in-each-node.cpp
1160.find-words-that-can-be-formed-by-characters.cpp
1160.find-words-that-can-be-formed-by-characters.cpp
1161.maximum-level-sum-of-a-binary-tree.cpp
1161.maximum-level-sum-of-a-binary-tree.cpp
1162.as-far-from-land-as-possible.cpp
1162.as-far-from-land-as-possible.cpp
1169.invalid-transactions.2.cpp
1169.invalid-transactions.2.cpp
1169.invalid-transactions.cpp
1169.invalid-transactions.cpp
117.populating-next-right-pointers-in-each-node-ii.cpp
117.populating-next-right-pointers-in-each-node-ii.cpp
1178.number-of-valid-words-for-each-puzzle.2.cpp
1178.number-of-valid-words-for-each-puzzle.2.cpp
1178.number-of-valid-words-for-each-puzzle.cpp
1178.number-of-valid-words-for-each-puzzle.cpp
118.pascals-triangle.cpp
118.pascals-triangle.cpp
1184.distance-between-bus-stops.cpp
1184.distance-between-bus-stops.cpp
1187.make-array-strictly-increasing.cpp
1187.make-array-strictly-increasing.cpp
1189.maximum-number-of-balloons.cpp
1189.maximum-number-of-balloons.cpp
119.pascals-triangle-ii.cpp
119.pascals-triangle-ii.cpp
1192.critical-connections-in-a-network.cpp
1192.critical-connections-in-a-network.cpp
12.integer-to-roman.cpp
12.integer-to-roman.cpp
120.triangle.cpp
120.triangle.cpp
1200.minimum-absolute-difference.cpp
1200.minimum-absolute-difference.cpp
View all files
About
No description, website, or topics provided.
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.