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 }}
Muhamed4
LeetCode
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
2
(
2
)
You must be signed in to star a repository
About
Collection of LeetCode questions to ace the coding interview!
leetcode.com/Muhamed_Morsi/
Topics
algorithm
interview
interview-preparation
interview-questions
leetcode
leetcode-solutions
problem-solving
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
57 Commits
57 Commits
Folders and files
Name
Name
Last commit message
Last commit date
design-circular-queue
design-circular-queue
Merge Two Sorted Lists.cpp
Merge Two Sorted Lists.cpp
Add Two Numbersv.cpp
Add Two Numbersv.cpp
Binary Search.cpp
Binary Search.cpp
Boats to Save People.cpp
Boats to Save People.cpp
Can Place Flowers.cpp
Can Place Flowers.cpp
Check Completeness of a Binary Tree.cpp
Check Completeness of a Binary Tree.cpp
Convert Sorted Array to Binary Search Tree.cpp
Convert Sorted Array to Binary Search Tree.cpp
Count Subarrays With Fixed Bounds.cpp
Count Subarrays With Fixed Bounds.cpp
Count Unreachable Pairs of Nodes in an Undirected Graph.cpp
Count Unreachable Pairs of Nodes in an Undirected Graph.cpp
Design Add and Search Words Data Structure.cpp
Design Add and Search Words Data Structure.cpp
Design Browser History.cpp
Design Browser History.cpp
Fair Distribution of Cookies.cpp
Fair Distribution of Cookies.cpp
Find the Difference of Two Arrays.cpp
Find the Difference of Two Arrays.cpp
Find the Longest Valid Obstacle Course at Each Position.cpp
Find the Longest Valid Obstacle Course at Each Position.cpp
Find the Middle Index in Array.cpp
Find the Middle Index in Array.cpp
Implement Trie (Prefix Tree).cpp
Implement Trie (Prefix Tree).cpp
Is Graph Bipartite?.cpp
Is Graph Bipartite?.cpp
Jump Game IV.cpp
Jump Game IV.cpp
K Closest Points to Origin.cpp
K Closest Points to Origin.cpp
Koko Eating Bananas.cpp
Koko Eating Bananas.cpp
Kth Largest Element in an Array.cpp
Kth Largest Element in an Array.cpp
Kth Missing Positive Number.cpp
Kth Missing Positive Number.cpp
Linked List Cycle.cpp
Linked List Cycle.cpp
Matrix Diagonal Sum.cpp
Matrix Diagonal Sum.cpp
Maximum Frequency Stack.cpp
Maximum Frequency Stack.cpp
Maximum Number of Vowels in a Substring of Given Length.cpp
Maximum Number of Vowels in a Substring of Given Length.cpp
Maximum Twin Sum of a Linked List.cpp
Maximum Twin Sum of a Linked List.cpp
Merge k Sorted Lists.cpp
Merge k Sorted Lists.cpp
Minimize Maximum of Array.cpp
Minimize Maximum of Array.cpp
Minimum Number of Vertices to Reach All Nodes.cpp
Minimum Number of Vertices to Reach All Nodes.cpp
Minimum Path Sum.cpp
Minimum Path Sum.cpp
Minimum Score of a Path Between Two Cities.cpp
Minimum Score of a Path Between Two Cities.cpp
Minimum Time to Complete Trips.cpp
Minimum Time to Complete Trips.cpp
Number of Closed Islands.cpp
Number of Closed Islands.cpp
Number of Days Between Two Dates.cpp
Number of Days Between Two Dates.cpp
Number of Enclaves.cpp
Number of Enclaves.cpp
Number of Operations to Make Network Connected.cpp
Number of Operations to Make Network Connected.cpp
Number of Subsequences That Satisfy the Given Sum Condition.cpp
Number of Subsequences That Satisfy the Given Sum Condition.cpp
Number of Ways of Cutting a Pizza.cpp
Number of Ways of Cutting a Pizza.cpp
Number of Zero-Filled Subarrays.cpp
Number of Zero-Filled Subarrays.cpp
Optimal Partition of String.cpp
Optimal Partition of String.cpp
Power of Two.cpp
Power of Two.cpp
README.md
README.md
Reducing Dishes.cpp
Reducing Dishes.cpp
Remove Colored Pieces if Both Neighbors are the Same Color.cpp
Remove Colored Pieces if Both Neighbors are the Same Color.cpp
Remove Nth Node From End of List.cpp
Remove Nth Node From End of List.cpp
Removing Stars From a String.cpp
Removing Stars From a String.cpp
Reorder List.cpp
Reorder List.cpp
Reorder Routes to Make All Paths Lead to the City Zero.cpp
Reorder Routes to Make All Paths Lead to the City Zero.cpp
Reverse Words in a String III.cpp
Reverse Words in a String III.cpp
Scramble String.cpp
Scramble String.cpp
Sign of the Product of an Array.cpp
Sign of the Product of an Array.cpp
Sliding Window Maximum.cpp
Sliding Window Maximum.cpp
Successful Pairs of Spells and Potions.cpp
Successful Pairs of Spells and Potions.cpp
Sum Root to Leaf Numbers.cpp
Sum Root to Leaf Numbers.cpp
Swap Nodes in Pairs.cpp
Swap Nodes in Pairs.cpp
Symmetric Tree.cpp
Symmetric Tree.cpp
Top K Frequent Elements.cpp
Top K Frequent Elements.cpp
Total Cost to Hire K Workers.cpp
Total Cost to Hire K Workers.cpp
Valid Parentheses.cpp
Valid Parentheses.cpp
Validate Stack Sequences.cpp
Validate Stack Sequences.cpp
View all files
Repository files navigation
README
More
items
LeetCode-Problems-Solutions
Collection of LeetCode questions to ace the coding interview!
About
Collection of LeetCode questions to ace the coding interview!
leetcode.com/Muhamed_Morsi/
Topics
algorithm
interview
interview-preparation
interview-questions
leetcode
leetcode-solutions
problem-solving
Resources
Readme
Activity
Stars
2
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.