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 }}
ming197
/
leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
191 Commits
191 Commits
.vscode
.vscode
bits
bits
1.two-sum.cpp
1.two-sum.cpp
101.symmetric-tree.cpp
101.symmetric-tree.cpp
102.binary-tree-level-order-traversal.cpp
102.binary-tree-level-order-traversal.cpp
103.binary-tree-zigzag-level-order-traversal.cpp
103.binary-tree-zigzag-level-order-traversal.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
108.convert-sorted-array-to-binary-search-tree.cpp
108.convert-sorted-array-to-binary-search-tree.cpp
11.container-with-most-water.cpp
11.container-with-most-water.cpp
114.flatten-binary-tree-to-linked-list.cpp
114.flatten-binary-tree-to-linked-list.cpp
117.populating-next-right-pointers-in-each-node-ii.cpp
117.populating-next-right-pointers-in-each-node-ii.cpp
118.pascals-triangle.cpp
118.pascals-triangle.cpp
12.integer-to-roman.cpp
12.integer-to-roman.cpp
120.triangle.cpp
120.triangle.cpp
121.best-time-to-buy-and-sell-stock.cpp
121.best-time-to-buy-and-sell-stock.cpp
122.best-time-to-buy-and-sell-stock-ii.cpp
122.best-time-to-buy-and-sell-stock-ii.cpp
124.binary-tree-maximum-path-sum.cpp
124.binary-tree-maximum-path-sum.cpp
125.valid-palindrome.cpp
125.valid-palindrome.cpp
128.longest-consecutive-sequence.cpp
128.longest-consecutive-sequence.cpp
129.sum-root-to-leaf-numbers.cpp
129.sum-root-to-leaf-numbers.cpp
13.roman-to-integer.cpp
13.roman-to-integer.cpp
130.surrounded-regions.cpp
130.surrounded-regions.cpp
131.palindrome-partitioning.cpp
131.palindrome-partitioning.cpp
133.clone-graph.cpp
133.clone-graph.cpp
1335.minimum-difficulty-of-a-job-schedule.cpp
1335.minimum-difficulty-of-a-job-schedule.cpp
134.gas-station.cpp
134.gas-station.cpp
135.candy.cpp
135.candy.cpp
136.single-number.cpp
136.single-number.cpp
137.single-number-ii.cpp
137.single-number-ii.cpp
138.copy-list-with-random-pointer.cpp
138.copy-list-with-random-pointer.cpp
139.word-break.cpp
139.word-break.cpp
14.longest-common-prefix.cpp
14.longest-common-prefix.cpp
141.linked-list-cycle.cpp
141.linked-list-cycle.cpp
142.linked-list-cycle-ii.cpp
142.linked-list-cycle-ii.cpp
146.lru-cache.cpp
146.lru-cache.cpp
148.sort-list.cpp
148.sort-list.cpp
15.3-sum.cpp
15.3-sum.cpp
150.evaluate-reverse-polish-notation.cpp
150.evaluate-reverse-polish-notation.cpp
151.reverse-words-in-a-string.cpp
151.reverse-words-in-a-string.cpp
153.find-minimum-in-rotated-sorted-array.cpp
153.find-minimum-in-rotated-sorted-array.cpp
155.min-stack.cpp
155.min-stack.cpp
160.intersection-of-two-linked-lists.cpp
160.intersection-of-two-linked-lists.cpp
162.find-peak-element.cpp
162.find-peak-element.cpp
167.two-sum-ii-input-array-is-sorted.cpp
167.two-sum-ii-input-array-is-sorted.cpp
169.majority-element.cpp
169.majority-element.cpp
17.letter-combinations-of-a-phone-number.cpp
17.letter-combinations-of-a-phone-number.cpp
172.factorial-trailing-zeroes.cpp
172.factorial-trailing-zeroes.cpp
173.binary-search-tree-iterator.cpp
173.binary-search-tree-iterator.cpp
189.rotate-array.cpp
189.rotate-array.cpp
19.remove-nth-node-from-end-of-list.cpp
19.remove-nth-node-from-end-of-list.cpp
190.reverse-bits.cpp
190.reverse-bits.cpp
191.number-of-1-bits.cpp
191.number-of-1-bits.cpp
198.house-robber.cpp
198.house-robber.cpp
199.binary-tree-right-side-view.cpp
199.binary-tree-right-side-view.cpp
2.add-two-numbers.cpp
2.add-two-numbers.cpp
20.valid-parentheses.cpp
20.valid-parentheses.cpp
200.number-of-islands.cpp
200.number-of-islands.cpp
201.bitwise-and-of-numbers-range.cpp
201.bitwise-and-of-numbers-range.cpp
202.happy-number.cpp
202.happy-number.cpp
205.isomorphic-strings.cpp
205.isomorphic-strings.cpp
206.reverse-linked-list.cpp
206.reverse-linked-list.cpp
207.course-schedule.cpp
207.course-schedule.cpp
208.implement-trie-prefix-tree.cpp
208.implement-trie-prefix-tree.cpp
209.minimum-size-subarray-sum.cpp
209.minimum-size-subarray-sum.cpp
21.merge-two-sorted-lists.cpp
21.merge-two-sorted-lists.cpp
210.course-schedule-ii.cpp
210.course-schedule-ii.cpp
211.design-add-and-search-words-data-structure.cpp
211.design-add-and-search-words-data-structure.cpp
2136.earliest-possible-day-of-full-bloom.cpp
2136.earliest-possible-day-of-full-bloom.cpp
215.kth-largest-element-in-an-array.cpp
215.kth-largest-element-in-an-array.cpp
219.contains-duplicate-ii.cpp
219.contains-duplicate-ii.cpp
22.generate-parentheses.cpp
22.generate-parentheses.cpp
221.maximal-square.cpp
221.maximal-square.cpp
224.basic-calculator.cpp
224.basic-calculator.cpp
228.summary-ranges.cpp
228.summary-ranges.cpp
230.kth-smallest-element-in-a-bst.cpp
230.kth-smallest-element-in-a-bst.cpp
234.palindrome-linked-list.cpp
234.palindrome-linked-list.cpp
236.lowest-common-ancestor-of-a-binary-tree.cpp
236.lowest-common-ancestor-of-a-binary-tree.cpp
238.product-of-array-except-self.cpp
238.product-of-array-except-self.cpp
239.sliding-window-maximum.cpp
239.sliding-window-maximum.cpp
24.swap-nodes-in-pairs.cpp
24.swap-nodes-in-pairs.cpp
240.search-a-2-d-matrix-ii.cpp
240.search-a-2-d-matrix-ii.cpp
242.valid-anagram.cpp
242.valid-anagram.cpp
26.remove-duplicates-from-sorted-array.cpp
26.remove-duplicates-from-sorted-array.cpp
27.remove-element.cpp
27.remove-element.cpp
274.h-index.cpp
274.h-index.cpp
279.perfect-squares.cpp
279.perfect-squares.cpp
28.find-the-index-of-the-first-occurrence-in-a-string.cpp
28.find-the-index-of-the-first-occurrence-in-a-string.cpp
283.move-zeroes.cpp
283.move-zeroes.cpp
289.game-of-life.cpp
289.game-of-life.cpp
290.word-pattern.cpp
290.word-pattern.cpp
3.longest-substring-without-repeating-characters.cpp
3.longest-substring-without-repeating-characters.cpp
30.substring-with-concatenation-of-all-words.cpp
30.substring-with-concatenation-of-all-words.cpp
300.longest-increasing-subsequence.cpp
300.longest-increasing-subsequence.cpp
307.range-sum-query-mutable.cpp
307.range-sum-query-mutable.cpp
31.next-permutation.cpp
31.next-permutation.cpp
322.coin-change.cpp
322.coin-change.cpp
33.search-in-rotated-sorted-array.cpp
33.search-in-rotated-sorted-array.cpp
34.find-first-and-last-position-of-element-in-sorted-array.cpp
34.find-first-and-last-position-of-element-in-sorted-array.cpp
347.top-k-frequent-elements.cpp
347.top-k-frequent-elements.cpp
View all files
Repository files navigation
README
More
items
leetcode
About
No description, website, or topics provided.
Resources
Readme
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.