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
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 }}
BahaaElMekkawy
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
2
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
218 Commits
218 Commits
0001-two-sum
0001-two-sum
0002-add-two-numbers
0002-add-two-numbers
0003-longest-substring-without-repeating-characters
0003-longest-substring-without-repeating-characters
0014-longest-common-prefix
0014-longest-common-prefix
0020-valid-parentheses
0020-valid-parentheses
0021-merge-two-sorted-lists
0021-merge-two-sorted-lists
0034-find-first-and-last-position-of-element-in-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0058-length-of-last-word
0058-length-of-last-word
0061-rotate-list
0061-rotate-list
0070-climbing-stairs
0070-climbing-stairs
0083-remove-duplicates-from-sorted-list
0083-remove-duplicates-from-sorted-list
0094-binary-tree-inorder-traversal
0094-binary-tree-inorder-traversal
0100-same-tree
0100-same-tree
0101-symmetric-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0104-maximum-depth-of-binary-tree
0121-best-time-to-buy-and-sell-stock
0121-best-time-to-buy-and-sell-stock
0136-single-number
0136-single-number
0141-linked-list-cycle
0141-linked-list-cycle
0144-binary-tree-preorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0145-binary-tree-postorder-traversal
0150-evaluate-reverse-polish-notation
0150-evaluate-reverse-polish-notation
0169-majority-element
0169-majority-element
0175-combine-two-tables
0175-combine-two-tables
0181-employees-earning-more-than-their-managers
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0182-duplicate-emails
0196-delete-duplicate-emails
0196-delete-duplicate-emails
0202-happy-number
0202-happy-number
0203-remove-linked-list-elements
0203-remove-linked-list-elements
0205-isomorphic-strings
0205-isomorphic-strings
0219-contains-duplicate-ii
0219-contains-duplicate-ii
0222-count-complete-tree-nodes
0222-count-complete-tree-nodes
0225-implement-stack-using-queues
0225-implement-stack-using-queues
0226-invert-binary-tree
0226-invert-binary-tree
0231-power-of-two
0231-power-of-two
0232-implement-queue-using-stacks
0232-implement-queue-using-stacks
0242-valid-anagram
0242-valid-anagram
0263-ugly-number
0263-ugly-number
0290-word-pattern
0290-word-pattern
0326-power-of-three
0326-power-of-three
0328-odd-even-linked-list
0328-odd-even-linked-list
0342-power-of-four
0342-power-of-four
0344-reverse-string
0344-reverse-string
0383-ransom-note
0383-ransom-note
0496-next-greater-element-i
0496-next-greater-element-i
0543-diameter-of-binary-tree
0543-diameter-of-binary-tree
0557-reverse-words-in-a-string-iii
0557-reverse-words-in-a-string-iii
0622-design-circular-queue
0622-design-circular-queue
0704-binary-search
0704-binary-search
0709-to-lower-case
0709-to-lower-case
0735-asteroid-collision
0735-asteroid-collision
0771-jewels-and-stones
0771-jewels-and-stones
0812-largest-triangle-area
0812-largest-triangle-area
0856-score-of-parentheses
0856-score-of-parentheses
0933-number-of-recent-calls
0933-number-of-recent-calls
0938-range-sum-of-bst
0938-range-sum-of-bst
1114-print-in-order
1114-print-in-order
1207-unique-number-of-occurrences
1207-unique-number-of-occurrences
1431-kids-with-the-greatest-number-of-candies
1431-kids-with-the-greatest-number-of-candies
1470-shuffle-the-array
1470-shuffle-the-array
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
1512-number-of-good-pairs
1512-number-of-good-pairs
1528-shuffle-string
1528-shuffle-string
1662-check-if-two-string-arrays-are-equivalent
1662-check-if-two-string-arrays-are-equivalent
1672-richest-customer-wealth
1672-richest-customer-wealth
1684-count-the-number-of-consistent-strings
1684-count-the-number-of-consistent-strings
1688-count-of-matches-in-tournament
1688-count-of-matches-in-tournament
1731-the-number-of-employees-which-report-to-each-employee
1731-the-number-of-employees-which-report-to-each-employee
1741-find-total-time-spent-by-each-employee
1741-find-total-time-spent-by-each-employee
1769-minimum-number-of-operations-to-move-all-balls-to-each-box
1769-minimum-number-of-operations-to-move-all-balls-to-each-box
1773-count-items-matching-a-rule
1773-count-items-matching-a-rule
1795-rearrange-products-table
1795-rearrange-products-table
1929-concatenation-of-array
1929-concatenation-of-array
1935-maximum-number-of-words-you-can-type
1935-maximum-number-of-words-you-can-type
2000-reverse-prefix-of-word
2000-reverse-prefix-of-word
2011-final-value-of-variable-after-performing-operations
2011-final-value-of-variable-after-performing-operations
2037-minimum-number-of-moves-to-seat-everyone
2037-minimum-number-of-moves-to-seat-everyone
2053-kth-distinct-string-in-an-array
2053-kth-distinct-string-in-an-array
2073-time-needed-to-buy-tickets
2073-time-needed-to-buy-tickets
2114-maximum-number-of-words-found-in-sentences
2114-maximum-number-of-words-found-in-sentences
2138-divide-a-string-into-groups-of-size-k
2138-divide-a-string-into-groups-of-size-k
2161-partition-array-according-to-given-pivot
2161-partition-array-according-to-given-pivot
2181-merge-nodes-in-between-zeros
2181-merge-nodes-in-between-zeros
2215-find-the-difference-of-two-arrays
2215-find-the-difference-of-two-arrays
2235-add-two-integers
2235-add-two-integers
2356-number-of-unique-subjects-taught-by-each-teacher
2356-number-of-unique-subjects-taught-by-each-teacher
2413-smallest-even-multiple
2413-smallest-even-multiple
2469-convert-the-temperature
2469-convert-the-temperature
2574-left-and-right-sum-differences
2574-left-and-right-sum-differences
2769-find-the-maximum-achievable-number
2769-find-the-maximum-achievable-number
2798-number-of-employees-who-met-the-target
2798-number-of-employees-who-met-the-target
2843-count-symmetric-integers
2843-count-symmetric-integers
2894-divisible-and-non-divisible-sums-difference
2894-divisible-and-non-divisible-sums-difference
2942-find-words-containing-character
2942-find-words-containing-character
2956-find-common-elements-between-two-arrays
2956-find-common-elements-between-two-arrays
2974-minimum-number-game
2974-minimum-number-game
3000-maximum-area-of-longest-diagonal-rectangle
3000-maximum-area-of-longest-diagonal-rectangle
3005-count-elements-with-maximum-frequency
3005-count-elements-with-maximum-frequency
3110-score-of-a-string
3110-score-of-a-string
3477-fruits-into-baskets-ii
3477-fruits-into-baskets-ii
3516-find-closest-person
3516-find-closest-person
View all files
Repository files navigation
README
More
items
Leetcode
A collection of problems I solved on LeetCode, mainly in C++.
About
A collection of problems I solved on LeetCode, mainly in C++.
Topics
algorithms-and-data-structures
complexity-optimization
problem-solving
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.