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 }}
widmonstertony
Leetcode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Leetcode
/
java
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Leetcode
/
java
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
oa
oa
1.two-sum.java
1.two-sum.java
10.regular-expression-matching.java
10.regular-expression-matching.java
100.same-tree.java
100.same-tree.java
1003.check-if-word-is-valid-after-substitutions.java
1003.check-if-word-is-valid-after-substitutions.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
1041.robot-bounded-in-circle.java
1041.robot-bounded-in-circle.java
1047.remove-all-adjacent-duplicates-in-string.java
1047.remove-all-adjacent-duplicates-in-string.java
1061.lexicographically-smallest-equivalent-string.java
1061.lexicographically-smallest-equivalent-string.java
1066.campus-bikes-ii.java
1066.campus-bikes-ii.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
11.container-with-most-water.java
11.container-with-most-water.java
110.balanced-binary-tree.java
110.balanced-binary-tree.java
1101.the-earliest-moment-when-everyone-become-friends.java
1101.the-earliest-moment-when-everyone-become-friends.java
1102.path-with-maximum-minimum-value.java
1102.path-with-maximum-minimum-value.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
1135.connecting-cities-with-minimum-cost.java
1135.connecting-cities-with-minimum-cost.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
1167.minimum-cost-to-connect-sticks.java
1167.minimum-cost-to-connect-sticks.java
1168.optimize-water-distribution-in-a-village.java
1168.optimize-water-distribution-in-a-village.java
117.populating-next-right-pointers-in-each-node-ii.java
117.populating-next-right-pointers-in-each-node-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
1249.minimum-remove-to-make-valid-parentheses.java
1249.minimum-remove-to-make-valid-parentheses.java
1277.count-square-submatrices-with-all-ones.java
1277.count-square-submatrices-with-all-ones.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
1296.divide-array-in-sets-of-k-consecutive-numbers.java
1296.divide-array-in-sets-of-k-consecutive-numbers.java
130.surrounded-regions.java
130.surrounded-regions.java
1304.find-n-unique-integers-sum-up-to-zero.java
1304.find-n-unique-integers-sum-up-to-zero.java
1306.jump-game-iii.java
1306.jump-game-iii.java
132.palindrome-partitioning-ii.java
132.palindrome-partitioning-ii.java
134.gas-station.java
134.gas-station.java
135.candy.java
135.candy.java
137.single-number-ii.java
137.single-number-ii.java
139.word-break.java
139.word-break.java
14.longest-common-prefix.java
14.longest-common-prefix.java
140.word-break-ii.java
140.word-break-ii.java
1423.maximum-points-you-can-obtain-from-cards.java
1423.maximum-points-you-can-obtain-from-cards.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
1469.find-all-the-lonely-nodes.java
1469.find-all-the-lonely-nodes.java
15.3-sum.java
15.3-sum.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
156.binary.tree-upside-down.java
156.binary.tree-upside-down.java
157.read-n-characters-given-read4.java
157.read-n-characters-given-read4.java
158.read-n-characters-given-read4-ii-call-multiple-times.java
158.read-n-characters-given-read4-ii-call-multiple-times.java
16.3-sum-closest.java
16.3-sum-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
163.missing-ranges.java
163.missing-ranges.java
1631.path-with-minimum-effort.java
1631.path-with-minimum-effort.java
165.compare-version-numbers.java
165.compare-version-numbers.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
170.two-sum-iii-data-structure-design.java
170.two-sum-iii-data-structure-design.java
172.factorial-trailing-zeroes.java
172.factorial-trailing-zeroes.java
173.binary-search-tree-iterator.java
173.binary-search-tree-iterator.java
174.dungeon-game.java
174.dungeon-game.java
179.largest-number.java
179.largest-number.java
18.4-sum.java
18.4-sum.java
186.reverse-words-in-a-string-ii.java
186.reverse-words-in-a-string-ii.java
188.best-time-to-buy-and-sell-stock-iv.java
188.best-time-to-buy-and-sell-stock-iv.java
189.rotate-array.java
189.rotate-array.java
19.remove-nth-node-from-end-of-list.java
19.remove-nth-node-from-end-of-list.java
198.house-robber.java
198.house-robber.java
2.add-two-numbers.java
2.add-two-numbers.java
20.valid-parentheses.java
20.valid-parentheses.java
200.number-of-islands.java
200.number-of-islands.java
201.bitwise-and-of-numbers-range.java
201.bitwise-and-of-numbers-range.java
206.reverse-linked-list.java
206.reverse-linked-list.java
207.course-schedule.java
207.course-schedule.java
208.implement-trie-prefix-tree.java
208.implement-trie-prefix-tree.java
21.merge-two-sorted-lists.java
21.merge-two-sorted-lists.java
210.course-schedule-ii.java
210.course-schedule-ii.java
211.design-add-and-search-words-data-structure.java
211.design-add-and-search-words-data-structure.java
213.house-robber-ii.java
213.house-robber-ii.java
214.shortest-palindrome.java
214.shortest-palindrome.java
215.kth-largest-element-in-an-array.java
215.kth-largest-element-in-an-array.java
216.combination-sum-iii.java
216.combination-sum-iii.java
217.contains-duplicate.java
217.contains-duplicate.java
218.the-skyline-problem.java
218.the-skyline-problem.java
219.contains-duplicate-ii.java
219.contains-duplicate-ii.java
22.generate-parentheses.java
22.generate-parentheses.java
220.contains-duplicate-iii.java
220.contains-duplicate-iii.java
221.maximal-square.java
221.maximal-square.java
223.rectangle-area.java
223.rectangle-area.java
View all files
You can’t perform that action at this time.