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 }}
mohamedsalahh
/
LeetCode-Solutions
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
553 Commits
553 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1009-complement-of-base-10-integer
1009-complement-of-base-10-integer
108-convert-sorted-array-to-binary-search-tree
108-convert-sorted-array-to-binary-search-tree
1143-longest-common-subsequence
1143-longest-common-subsequence
12-integer-to-roman
12-integer-to-roman
1342-number-of-steps-to-reduce-a-number-to-zero
1342-number-of-steps-to-reduce-a-number-to-zero
1356-sort-integers-by-the-number-of-1-bits
1356-sort-integers-by-the-number-of-1-bits
141-linked-list-cycle
141-linked-list-cycle
1486-xor-operation-in-an-array
1486-xor-operation-in-an-array
160-intersection-of-two-linked-lists
160-intersection-of-two-linked-lists
168-excel-sheet-column-title
168-excel-sheet-column-title
1684-count-the-number-of-consistent-strings
1684-count-the-number-of-consistent-strings
171-excel-sheet-column-number
171-excel-sheet-column-number
1720-decode-xored-array
1720-decode-xored-array
1763-longest-nice-substring
1763-longest-nice-substring
1829-maximum-xor-for-each-query
1829-maximum-xor-for-each-query
1863-sum-of-all-subset-xor-totals
1863-sum-of-all-subset-xor-totals
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
202-happy-number
202-happy-number
205-isomorphic-strings
205-isomorphic-strings
219-contains-duplicate-ii
219-contains-duplicate-ii
22-generate-parentheses
22-generate-parentheses
2206-divide-array-into-equal-pairs
2206-divide-array-into-equal-pairs
2220-minimum-bit-flips-to-convert-number
2220-minimum-bit-flips-to-convert-number
225-implement-stack-using-queues
225-implement-stack-using-queues
228-summary-ranges
228-summary-ranges
231-power-of-two
231-power-of-two
232-implement-queue-using-stacks
232-implement-queue-using-stacks
234-palindrome-linked-list
234-palindrome-linked-list
2342-max-sum-of-a-pair-with-equal-sum-of-digits
2342-max-sum-of-a-pair-with-equal-sum-of-digits
235-lowest-common-ancestor-of-a-binary-search-tree
235-lowest-common-ancestor-of-a-binary-search-tree
2357-make-array-zero-by-subtracting-equal-amounts
2357-make-array-zero-by-subtracting-equal-amounts
2359-find-closest-node-to-given-two-nodes
2359-find-closest-node-to-given-two-nodes
2363-merge-similar-items
2363-merge-similar-items
2364-count-number-of-bad-pairs
2364-count-number-of-bad-pairs
2365-task-scheduler-ii
2365-task-scheduler-ii
2367-number-of-arithmetic-triplets
2367-number-of-arithmetic-triplets
2368-reachable-nodes-with-restrictions
2368-reachable-nodes-with-restrictions
2369-check-if-there-is-a-valid-partition-for-the-array
2369-check-if-there-is-a-valid-partition-for-the-array
2385-amount-of-time-for-binary-tree-to-be-infected
2385-amount-of-time-for-binary-tree-to-be-infected
24-swap-nodes-in-pairs
24-swap-nodes-in-pairs
242-valid-anagram
242-valid-anagram
258-add-digits
258-add-digits
268-missing-number
268-missing-number
283-move-zeroes
283-move-zeroes
290-word-pattern
290-word-pattern
3-longest-substring-without-repeating-characters
3-longest-substring-without-repeating-characters
303-range-sum-query-immutable
303-range-sum-query-immutable
326-power-of-three
326-power-of-three
342-power-of-four
342-power-of-four
349-intersection-of-two-arrays
349-intersection-of-two-arrays
36-valid-sudoku
36-valid-sudoku
367-valid-perfect-square
367-valid-perfect-square
374-guess-number-higher-or-lower
374-guess-number-higher-or-lower
383-ransom-note
383-ransom-note
387-first-unique-character-in-a-string
387-first-unique-character-in-a-string
389-find-the-difference
389-find-the-difference
39-combination-sum
39-combination-sum
401-binary-watch
401-binary-watch
405-convert-a-number-to-hexadecimal
405-convert-a-number-to-hexadecimal
409-longest-palindrome
409-longest-palindrome
412-fizz-buzz
412-fizz-buzz
414-third-maximum-number
414-third-maximum-number
415-add-strings
415-add-strings
434-number-of-segments-in-a-string
434-number-of-segments-in-a-string
441-arranging-coins
441-arranging-coins
448-find-all-numbers-disappeared-in-an-array
448-find-all-numbers-disappeared-in-an-array
455-assign-cookies
455-assign-cookies
459-repeated-substring-pattern
459-repeated-substring-pattern
461-hamming-distance
461-hamming-distance
463-island-perimeter
463-island-perimeter
476-number-complement
476-number-complement
482-license-key-formatting
482-license-key-formatting
485-max-consecutive-ones
485-max-consecutive-ones
492-construct-the-rectangle
492-construct-the-rectangle
495-teemo-attacking
495-teemo-attacking
496-next-greater-element-i
496-next-greater-element-i
500-keyboard-row
500-keyboard-row
504-base-7
504-base-7
506-relative-ranks
506-relative-ranks
507-perfect-number
507-perfect-number
520-detect-capital
520-detect-capital
6-zigzag-conversion
6-zigzag-conversion
605-can-place-flowers
605-can-place-flowers
645-set-mismatch
645-set-mismatch
693-binary-number-with-alternating-bits
693-binary-number-with-alternating-bits
762-prime-number-of-set-bits-in-binary-representation
762-prime-number-of-set-bits-in-binary-representation
78-subsets
78-subsets
868-binary-gap
868-binary-gap
89-gray-code
89-gray-code
Easy
Easy
Hard
Hard
Medium
Medium
LICENSE
LICENSE
README.md
README.md
View all files
Repository files navigation
README
MIT license
More
items
LeetCode-Solutions
My solutions for LeetCode problems
Easy
Medium
Hard
About
My solutions for LeetCode problems
Topics
algorithms
data-structures
leetcode
problem-solving
Resources
Readme
MIT license
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.