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 }}
hxdengBerkeley
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
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
2 Commits
2 Commits
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.