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 }}
hxdengBerkeley
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
1
(
1
)
You must be signed in to star a repository
About
Leetcode Test Record
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
2 Commits
2 Commits
Folders and files
Name
Name
Last commit message
Last commit date
Solution10
Solution10
Solution11
Solution11
Solution12
Solution12
Solution13
Solution13
Solution14
Solution14
Solution15
Solution15
Solution17
Solution17
Solution18
Solution18
Solution2
Solution2
Solution25
Solution25
Solution3
Solution3
Solution4
Solution4
Solution5
Solution5
Solution548
Solution548
Solution6
Solution6
Solution7
Solution7
Solution8
Solution8
Solution9
Solution9
Sort
Sort
src/
andy/
Test
src/
andy/
Test
.gitignore
.gitignore
100.same-tree.java
100.same-tree.java
101.symmetric-tree.java
101.symmetric-tree.java
102.binary-tree-level-order-traversal.java
102.binary-tree-level-order-traversal.java
103.binary-tree-zigzag-level-order-traversal.java
103.binary-tree-zigzag-level-order-traversal.java
104.maximum-depth-of-binary-tree.java
104.maximum-depth-of-binary-tree.java
105.construct-binary-tree-from-preorder-and-inorder-traversal.java
105.construct-binary-tree-from-preorder-and-inorder-traversal.java
106.construct-binary-tree-from-inorder-and-postorder-traversal.java
106.construct-binary-tree-from-inorder-and-postorder-traversal.java
107.binary-tree-level-order-traversal-ii.java
107.binary-tree-level-order-traversal-ii.java
108.convert-sorted-array-to-binary-search-tree.java
108.convert-sorted-array-to-binary-search-tree.java
109.convert-sorted-list-to-binary-search-tree.java
109.convert-sorted-list-to-binary-search-tree.java
110.balanced-binary-tree.java
110.balanced-binary-tree.java
111.minimum-depth-of-binary-tree.java
111.minimum-depth-of-binary-tree.java
112.path-sum.java
112.path-sum.java
113.path-sum-ii.java
113.path-sum-ii.java
114.flatten-binary-tree-to-linked-list.java
114.flatten-binary-tree-to-linked-list.java
115.distinct-subsequences.java
115.distinct-subsequences.java
116.populating-next-right-pointers-in-each-node.java
116.populating-next-right-pointers-in-each-node.java
117.populating-next-right-pointers-in-each-node-ii.java
117.populating-next-right-pointers-in-each-node-ii.java
118.pascals-triangle.java
118.pascals-triangle.java
119.pascals-triangle-ii.java
119.pascals-triangle-ii.java
120.triangle.java
120.triangle.java
121.best-time-to-buy-and-sell-stock.java
121.best-time-to-buy-and-sell-stock.java
122.best-time-to-buy-and-sell-stock-ii.java
122.best-time-to-buy-and-sell-stock-ii.java
123.best-time-to-buy-and-sell-stock-iii.java
123.best-time-to-buy-and-sell-stock-iii.java
124.binary-tree-maximum-path-sum.java
124.binary-tree-maximum-path-sum.java
125.valid-palindrome.java
125.valid-palindrome.java
126.word-ladder-ii.java
126.word-ladder-ii.java
127.word-ladder.java
127.word-ladder.java
128.longest-consecutive-sequence.java
128.longest-consecutive-sequence.java
129.sum-root-to-leaf-numbers.java
129.sum-root-to-leaf-numbers.java
130.surrounded-regions.java
130.surrounded-regions.java
131.palindrome-partitioning.java
131.palindrome-partitioning.java
132.palindrome-partitioning-ii.java
132.palindrome-partitioning-ii.java
133.clone-graph.java
133.clone-graph.java
134.gas-station.java
134.gas-station.java
135.candy.java
135.candy.java
136.single-number.java
136.single-number.java
137.single-number-ii.java
137.single-number-ii.java
138.copy-list-with-random-pointer.java
138.copy-list-with-random-pointer.java
139.word-break.java
139.word-break.java
140.word-break-ii.java
140.word-break-ii.java
141.linked-list-cycle.java
141.linked-list-cycle.java
142.linked-list-cycle-ii.java
142.linked-list-cycle-ii.java
143.reorder-list.java
143.reorder-list.java
144.binary-tree-preorder-traversal.java
144.binary-tree-preorder-traversal.java
145.binary-tree-postorder-traversal.java
145.binary-tree-postorder-traversal.java
146.lru-cache.java
146.lru-cache.java
147.insertion-sort-list.java
147.insertion-sort-list.java
148.sort-list.java
148.sort-list.java
149.max-points-on-a-line.java
149.max-points-on-a-line.java
150.evaluate-reverse-polish-notation.java
150.evaluate-reverse-polish-notation.java
151.reverse-words-in-a-string.java
151.reverse-words-in-a-string.java
152.maximum-product-subarray.java
152.maximum-product-subarray.java
153.find-minimum-in-rotated-sorted-array.java
153.find-minimum-in-rotated-sorted-array.java
154.find-minimum-in-rotated-sorted-array-ii.java
154.find-minimum-in-rotated-sorted-array-ii.java
155.min-stack.java
155.min-stack.java
16.3sum-closest.java
16.3sum-closest.java
160.intersection-of-two-linked-lists.java
160.intersection-of-two-linked-lists.java
162.find-peak-element.java
162.find-peak-element.java
164.maximum-gap.java
164.maximum-gap.java
165.compare-version-numbers.java
165.compare-version-numbers.java
166.fraction-to-recurring-decimal.java
166.fraction-to-recurring-decimal.java
167.two-sum-ii-input-array-is-sorted.java
167.two-sum-ii-input-array-is-sorted.java
168.excel-sheet-column-title.java
168.excel-sheet-column-title.java
169.majority-element.java
169.majority-element.java
17.letter-combinations-of-a-phone-number.java
17.letter-combinations-of-a-phone-number.java
18.4sum.java
18.4sum.java
19.remove-nth-node-from-end-of-list.java
19.remove-nth-node-from-end-of-list.java
20.valid-parentheses.java
20.valid-parentheses.java
21.merge-two-sorted-lists.java
21.merge-two-sorted-lists.java
22.generate-parentheses.0.java
22.generate-parentheses.0.java
22.generate-parentheses.java
22.generate-parentheses.java
23.merge-k-sorted-lists.java
23.merge-k-sorted-lists.java
24.swap-nodes-in-pairs.java
24.swap-nodes-in-pairs.java
25.reverse-nodes-in-k-group.java
25.reverse-nodes-in-k-group.java
26.remove-duplicates-from-sorted-array.java
26.remove-duplicates-from-sorted-array.java
27.remove-element.java
27.remove-element.java
28.implement-strstr.java
28.implement-strstr.java
29.divide-two-integers.java
29.divide-two-integers.java
View all files
Repository files navigation
README
More
items
Leetcode
Leetcode Test Record
About
Leetcode Test Record
Resources
Readme
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.