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 }}
mohamedrady45
/
Leetcode-solution
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
253 Commits
253 Commits
Folders and files
Name
Name
Last commit message
Last commit date
0057-insert-interval
0057-insert-interval
0093-restore-ip-addresses
0093-restore-ip-addresses
0100-same-tree
0100-same-tree
0118-pascals-triangle
0118-pascals-triangle
0119-pascals-triangle-ii
0119-pascals-triangle-ii
0131-palindrome-partitioning
0131-palindrome-partitioning
0135-candy
0135-candy
0144-binary-tree-preorder-traversal
0144-binary-tree-preorder-traversal
0315-count-of-smaller-numbers-after-self
0315-count-of-smaller-numbers-after-self
0491-non-decreasing-subsequences
0491-non-decreasing-subsequences
0526-beautiful-arrangement
0526-beautiful-arrangement
0688-knight-probability-in-chessboard
0688-knight-probability-in-chessboard
0834-sum-of-distances-in-tree
0834-sum-of-distances-in-tree
0839-similar-string-groups
0839-similar-string-groups
0918-maximum-sum-circular-subarray
0918-maximum-sum-circular-subarray
0926-flip-string-to-monotone-increasing
0926-flip-string-to-monotone-increasing
0944-delete-columns-to-make-sorted
0944-delete-columns-to-make-sorted
0974-subarray-sums-divisible-by-k
0974-subarray-sums-divisible-by-k
0997-find-the-town-judge
0997-find-the-town-judge
1048-longest-string-chain
1048-longest-string-chain
1061-lexicographically-smallest-equivalent-string
1061-lexicographically-smallest-equivalent-string
1074-number-of-submatrices-that-sum-to-target
1074-number-of-submatrices-that-sum-to-target
1137-n-th-tribonacci-number
1137-n-th-tribonacci-number
118-pascals-triangle
118-pascals-triangle
120-triangle
120-triangle
1268-search-suggestions-system
1268-search-suggestions-system
128-longest-consecutive-sequence
128-longest-consecutive-sequence
135-candy
135-candy
1359-count-all-valid-pickup-and-delivery-options
1359-count-all-valid-pickup-and-delivery-options
1423-maximum-points-you-can-obtain-from-cards
1423-maximum-points-you-can-obtain-from-cards
1443-minimum-time-to-collect-all-apples-in-a-tree
1443-minimum-time-to-collect-all-apples-in-a-tree
1465-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
1465-maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
1480-running-sum-of-1d-array
1480-running-sum-of-1d-array
1642-furthest-building-you-can-reach
1642-furthest-building-you-can-reach
1647-minimum-deletions-to-make-character-frequencies-unique
1647-minimum-deletions-to-make-character-frequencies-unique
1658-minimum-operations-to-reduce-x-to-zero
1658-minimum-operations-to-reduce-x-to-zero
167-two-sum-ii-input-array-is-sorted
167-two-sum-ii-input-array-is-sorted
1689-partitioning-into-minimum-number-of-deci-binary-numbers
1689-partitioning-into-minimum-number-of-deci-binary-numbers
1695-maximum-erasure-value
1695-maximum-erasure-value
1696-jump-game-vi
1696-jump-game-vi
1710-maximum-units-on-a-truck
1710-maximum-units-on-a-truck
1799-maximize-score-after-n-operations
1799-maximize-score-after-n-operations
1971-find-if-path-exists-in-graph
1971-find-if-path-exists-in-graph
199-binary-tree-right-side-view
199-binary-tree-right-side-view
213-house-robber-ii
213-house-robber-ii
215-kth-largest-element-in-an-array
215-kth-largest-element-in-an-array
2244-minimum-rounds-to-complete-all-tasks
2244-minimum-rounds-to-complete-all-tasks
231-power-of-two
231-power-of-two
2359-find-closest-node-to-given-two-nodes
2359-find-closest-node-to-given-two-nodes
242-valid-anagram
242-valid-anagram
2421-number-of-good-paths
2421-number-of-good-paths
2665-counter-ii
2665-counter-ii
278-first-bad-version
278-first-bad-version
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
315-count-of-smaller-numbers-after-self
315-count-of-smaller-numbers-after-self
34-find-first-and-last-position-of-element-in-sorted-array
34-find-first-and-last-position-of-element-in-sorted-array
342-power-of-four
342-power-of-four
376-wiggle-subsequence
376-wiggle-subsequence
378-kth-smallest-element-in-a-sorted-matrix
378-kth-smallest-element-in-a-sorted-matrix
4-median-of-two-sorted-arrays
4-median-of-two-sorted-arrays
406-queue-reconstruction-by-height
406-queue-reconstruction-by-height
41-first-missing-positive
41-first-missing-positive
45-jump-game-ii
45-jump-game-ii
462-minimum-moves-to-equal-array-elements-ii
462-minimum-moves-to-equal-array-elements-ii
473-matchsticks-to-square
473-matchsticks-to-square
5-longest-palindromic-substring
5-longest-palindromic-substring
509-fibonacci-number
509-fibonacci-number
51-n-queens
51-n-queens
55-jump-game
55-jump-game
576-out-of-boundary-paths
576-out-of-boundary-paths
583-delete-operation-for-two-strings
583-delete-operation-for-two-strings
62-unique-paths
62-unique-paths
630-course-schedule-iii
630-course-schedule-iii
665-non-decreasing-array
665-non-decreasing-array
69-sqrtx
69-sqrtx
70-climbing-stairs
70-climbing-stairs
724-find-pivot-index
724-find-pivot-index
740-delete-and-earn
740-delete-and-earn
744-find-smallest-letter-greater-than-target
744-find-smallest-letter-greater-than-target
745-prefix-and-suffix-search
745-prefix-and-suffix-search
746-min-cost-climbing-stairs
746-min-cost-climbing-stairs
792-number-of-matching-subsequences
792-number-of-matching-subsequences
820-short-encoding-of-words
820-short-encoding-of-words
968-binary-tree-cameras
968-binary-tree-cameras
520. Detect Capital.cpp
520. Detect Capital.cpp
README.md
README.md
View all files
Repository files navigation
README
More
items
Leetcode-solution
My solutions in leetcode daily problems
About
My solutions in Leetcode daily problems
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.