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
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
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 }}
Teddies1
/
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
Latest commit
History
1,045 Commits
1,045 Commits
Folders and files
Name
Name
Last commit message
Last commit date
0003-longest-substring-without-repeating-characters
0003-longest-substring-without-repeating-characters
0011-container-with-most-water
0011-container-with-most-water
0015-3sum
0015-3sum
0067-add-binary
0067-add-binary
0094-binary-tree-inorder-traversal
0094-binary-tree-inorder-traversal
0167-two-sum-ii-input-array-is-sorted
0167-two-sum-ii-input-array-is-sorted
0234-palindrome-linked-list
0234-palindrome-linked-list
0238-product-of-array-except-self
0238-product-of-array-except-self
0344-reverse-string
0344-reverse-string
0347-top-k-frequent-elements
0347-top-k-frequent-elements
0543-diameter-of-binary-tree
0543-diameter-of-binary-tree
1-two-sum
1-two-sum
100-same-tree
100-same-tree
1014-k-closest-points-to-origin
1014-k-closest-points-to-origin
1019-squares-of-a-sorted-array
1019-squares-of-a-sorted-array
102-binary-tree-level-order-traversal
102-binary-tree-level-order-traversal
1023-time-based-key-value-store
1023-time-based-key-value-store
103-binary-tree-zigzag-level-order-traversal
103-binary-tree-zigzag-level-order-traversal
1035-cousins-in-binary-tree
1035-cousins-in-binary-tree
1036-rotting-oranges
1036-rotting-oranges
104-maximum-depth-of-binary-tree
104-maximum-depth-of-binary-tree
105-construct-binary-tree-from-preorder-and-inorder-traversal
105-construct-binary-tree-from-preorder-and-inorder-traversal
1055-pairs-of-songs-with-total-durations-divisible-by-60
1055-pairs-of-songs-with-total-durations-divisible-by-60
107-binary-tree-level-order-traversal-ii
107-binary-tree-level-order-traversal-ii
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
11-container-with-most-water
11-container-with-most-water
110-balanced-binary-tree
110-balanced-binary-tree
112-path-sum
112-path-sum
1127-last-stone-weight
1127-last-stone-weight
113-path-sum-ii
113-path-sum-ii
1137-height-checker
1137-height-checker
1143-longest-common-subsequence
1143-longest-common-subsequence
118-pascals-triangle
118-pascals-triangle
119-pascals-triangle-ii
119-pascals-triangle-ii
121-best-time-to-buy-and-sell-stock
121-best-time-to-buy-and-sell-stock
122-best-time-to-buy-and-sell-stock-ii
122-best-time-to-buy-and-sell-stock-ii
1236-n-th-tribonacci-number
1236-n-th-tribonacci-number
125-valid-palindrome
125-valid-palindrome
1250-longest-common-subsequence
1250-longest-common-subsequence
128-longest-consecutive-sequence
128-longest-consecutive-sequence
129-sum-root-to-leaf-numbers
129-sum-root-to-leaf-numbers
1293-three-consecutive-odds
1293-three-consecutive-odds
13-roman-to-integer
13-roman-to-integer
1310-watering-plants
1310-watering-plants
136-single-number
136-single-number
14-longest-common-prefix
14-longest-common-prefix
141-linked-list-cycle
141-linked-list-cycle
1411-convert-binary-number-in-a-linked-list-to-integer
1411-convert-binary-number-in-a-linked-list-to-integer
142-linked-list-cycle-ii
142-linked-list-cycle-ii
1421-find-numbers-with-even-number-of-digits
1421-find-numbers-with-even-number-of-digits
143-reorder-list
143-reorder-list
144-binary-tree-preorder-traversal
144-binary-tree-preorder-traversal
146-lru-cache
146-lru-cache
1470-shuffle-the-array
1470-shuffle-the-array
148-sort-list
148-sort-list
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
15-3sum
15-3sum
150-evaluate-reverse-polish-notation
150-evaluate-reverse-polish-notation
151-reverse-words-in-a-string
151-reverse-words-in-a-string
1523-count-odd-numbers-in-an-interval-range
1523-count-odd-numbers-in-an-interval-range
153-find-minimum-in-rotated-sorted-array
153-find-minimum-in-rotated-sorted-array
1539-diagonal-traverse-ii
1539-diagonal-traverse-ii
1544-count-good-nodes-in-binary-tree
1544-count-good-nodes-in-binary-tree
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1615-range-sum-of-sorted-subarray-sums
1615-range-sum-of-sorted-subarray-sums
1620-check-if-array-pairs-are-divisible-by-k
1620-check-if-array-pairs-are-divisible-by-k
1641-count-sorted-vowel-strings
1641-count-sorted-vowel-strings
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1672-richest-customer-wealth
1672-richest-customer-wealth
169-majority-element
169-majority-element
1731-even-odd-tree
1731-even-odd-tree
175-combine-two-tables
175-combine-two-tables
1757-recyclable-and-low-fat-products
1757-recyclable-and-low-fat-products
1833-maximum-ice-cream-bars
1833-maximum-ice-cream-bars
19-remove-nth-node-from-end-of-list
19-remove-nth-node-from-end-of-list
190-reverse-bits
190-reverse-bits
191-number-of-1-bits
191-number-of-1-bits
199-binary-tree-right-side-view
199-binary-tree-right-side-view
2-add-two-numbers
2-add-two-numbers
20-valid-parentheses
20-valid-parentheses
200-number-of-islands
200-number-of-islands
204-count-primes
204-count-primes
206-reverse-linked-list
206-reverse-linked-list
207-course-schedule
207-course-schedule
208-implement-trie-prefix-tree
208-implement-trie-prefix-tree
2095-delete-the-middle-node-of-a-linked-list
2095-delete-the-middle-node-of-a-linked-list
21-merge-two-sorted-lists
21-merge-two-sorted-lists
210-course-schedule-ii
210-course-schedule-ii
215-kth-largest-element-in-an-array
215-kth-largest-element-in-an-array
217-contains-duplicate
217-contains-duplicate
2190-count-common-words-with-one-occurrence
2190-count-common-words-with-one-occurrence
22-generate-parentheses
22-generate-parentheses
226-invert-binary-tree
226-invert-binary-tree
2262-solving-questions-with-brainpower
2262-solving-questions-with-brainpower
2265-partition-array-according-to-given-pivot
2265-partition-array-according-to-given-pivot
2277-count-equal-and-divisible-pairs-in-an-array
2277-count-equal-and-divisible-pairs-in-an-array
23-merge-k-sorted-lists
23-merge-k-sorted-lists
230-kth-smallest-element-in-a-bst
230-kth-smallest-element-in-a-bst
231-power-of-two
231-power-of-two
232-implement-queue-using-stacks
232-implement-queue-using-stacks
View all files
Repository files navigation
README
More
items
leetcode
compilation of accepted LeetCode questions
About
accepted leetcode solutions
Topics
algorithms-and-data-structures
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.