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
Type
/
to 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 }}
Abbassadri786
/
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
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
504 Commits
504 Commits
Databases
Databases
Dynamic Programming
Dynamic Programming
Graph
Graph
1. Two Sum.cpp
1. Two Sum.cpp
100. Same Tree.cpp
100. Same Tree.cpp
1004. Max Consecutive Ones III.cpp
1004. Max Consecutive Ones III.cpp
101. Symmetric Tree.cpp
101. Symmetric Tree.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1011. Capacity To Ship Packages Within D Days.cpp
1019. Next Greater Node In Linked List.cpp
1019. Next Greater Node In Linked List.cpp
102. Binary Tree Level Order Traversal.cpp
102. Binary Tree Level Order Traversal.cpp
1021. Remove Outermost Parentheses.cpp
1021. Remove Outermost Parentheses.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
103. Binary Tree Zigzag Level Order Traversal.cpp
104. Maximum Depth of Binary Tree.cpp
104. Maximum Depth of Binary Tree.cpp
1042. Flower Planting With No Adjacent.cpp
1042. Flower Planting With No Adjacent.cpp
1046. Last Stone Weight.cpp
1046. Last Stone Weight.cpp
1047. Remove All Adjacent Duplicates In String.cpp
1047. Remove All Adjacent Duplicates In String.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
105. Construct Binary Tree from Preorder and Inorder Traversal.cpp
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
106. Construct Binary Tree from Inorder and Postorder Traversal.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
108. Convert Sorted Array to Binary Search Tree.cpp
11. Container With Most Water.cpp
11. Container With Most Water.cpp
110. Balanced Binary Tree.cpp
110. Balanced Binary Tree.cpp
112. Path Sum.cpp
112. Path Sum.cpp
1122. Relative Sort Array.cpp
1122. Relative Sort Array.cpp
1137. N-th Tribonacci Number.cpp
1137. N-th Tribonacci Number.cpp
114. Flatten Binary Tree to Linked List.cpp
114. Flatten Binary Tree to Linked List.cpp
118. Pascal's Triangle.cpp
118. Pascal's Triangle.cpp
1189. Maximum Number of Balloons.cpp
1189. Maximum Number of Balloons.cpp
1207. Unique Number of Occurrences.cpp
1207. Unique Number of Occurrences.cpp
121. Best Time to Buy and Sell.cpp
121. Best Time to Buy and Sell.cpp
122. Best Time to Buy and Sell Stock II.cpp
122. Best Time to Buy and Sell Stock II.cpp
1221. Split a String in Balanced Strings.cpp
1221. Split a String in Balanced Strings.cpp
124. Binary Tree Maximum Path Sum.cpp
124. Binary Tree Maximum Path Sum.cpp
1248. Count Number of Nice Subarrays.cpp
1248. Count Number of Nice Subarrays.cpp
125. Valid Palindrome.cpp
125. Valid Palindrome.cpp
1266. Minimum Time Visiting All Points.cpp
1266. Minimum Time Visiting All Points.cpp
128. Longest Consecutive Sequence.cpp
128. Longest Consecutive Sequence.cpp
1281. Subtract the Product and Sum of Digits of an Integer.cpp
1281. Subtract the Product and Sum of Digits of an Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1290. Convert Binary Number in a Linked List to Integer.cpp
1295. Find Numbers with Even Number of Digits.cpp
1295. Find Numbers with Even Number of Digits.cpp
13. Roman to Integer.cpp
13. Roman to Integer.cpp
131. Palindrome Partitioning.cpp
131. Palindrome Partitioning.cpp
1323. Maximum 69 Number.cpp
1323. Maximum 69 Number.cpp
134. Gas Station.cpp
134. Gas Station.cpp
135. Candy.cpp
135. Candy.cpp
1358. Number of Substrings Containing All Three Characters.cpp
1358. Number of Substrings Containing All Three Characters.cpp
136. Single Number.cpp
136. Single Number.cpp
1360. Number of Days Between Two Dates.cpp
1360. Number of Days Between Two Dates.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
1365. How Many Numbers Are Smaller Than the Current Number.cpp
137. Single Number II.cpp
137. Single Number II.cpp
1389. Create Target Array in the Given Order.cpp
1389. Create Target Array in the Given Order.cpp
14. Longest Common Prefix.cpp
14. Longest Common Prefix.cpp
141. Linked List Cycle.cpp
141. Linked List Cycle.cpp
1419. Minimum Number of Frogs Croaking.cpp
1419. Minimum Number of Frogs Croaking.cpp
1423. Maximum Points You Can Obtain from Cards.cpp
1423. Maximum Points You Can Obtain from Cards.cpp
143. Reorder List.cpp
143. Reorder List.cpp
1431. Kids With the Greatest Number of Candies.cpp
1431. Kids With the Greatest Number of Candies.cpp
144. Binary Tree Preorder Traversal.cpp
144. Binary Tree Preorder Traversal.cpp
146. LRU Cache.cpp
146. LRU Cache.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1464. Maximum Product of Two Elements in an Array.cpp
1470. Shuffle the Array.cpp
1470. Shuffle the Array.cpp
148. Sort List.cpp
148. Sort List.cpp
1480. Running Sum of 1d Array.cpp
1480. Running Sum of 1d Array.cpp
1482. Minimum Number of Days to Make m Bouquets.cpp
1482. Minimum Number of Days to Make m Bouquets.cpp
15. 3Sum.cpp
15. 3Sum.cpp
150. Evaluate Reverse Polish Notation.cpp
150. Evaluate Reverse Polish Notation.cpp
151. Reverse Words in a String.cpp
151. Reverse Words in a String.cpp
1512. Number of Good Pairs.cpp
1512. Number of Good Pairs.cpp
153. Find Minimum in Rotated Sorted Array.cpp
153. Find Minimum in Rotated Sorted Array.cpp
1534. Count Good Triplets.cpp
1534. Count Good Triplets.cpp
1539. Kth Missing Positive Number.cpp
1539. Kth Missing Positive Number.cpp
155. Min Stack.cpp
155. Min Stack.cpp
1572. Matrix Diagonal Sum.cpp
1572. Matrix Diagonal Sum.cpp
1588. Sum of All Odd Length Subarrays.cpp
1588. Sum of All Odd Length Subarrays.cpp
160. Intersection of Two Linked Lists.cpp
160. Intersection of Two Linked Lists.cpp
162. Find Peak Element.cpp
162. Find Peak Element.cpp
1630. Arithmetic Subarrays.cpp
1630. Arithmetic Subarrays.cpp
1636. Sort Array by Increasing Frequency.cpp
1636. Sort Array by Increasing Frequency.cpp
1662. Check If Two String Arrays are Equivalent.cpp
1662. Check If Two String Arrays are Equivalent.cpp
1669. Merge In Between Linked Lists.cpp
1669. Merge In Between Linked Lists.cpp
167. Two Sum II - Input Array Is Sorted.cpp
167. Two Sum II - Input Array Is Sorted.cpp
1672. Richest Customer Wealth.cpp
1672. Richest Customer Wealth.cpp
168. Excel Sheet Column Title.cpp
168. Excel Sheet Column Title.cpp
1688. Count of Matches in Tournament.cpp
1688. Count of Matches in Tournament.cpp
169. Majority Element.cpp
169. Majority Element.cpp
17. Letter Combinations of a Phone Number.cpp
17. Letter Combinations of a Phone Number.cpp
1700. Number of Students Unable to Eat Lunch.cpp
1700. Number of Students Unable to Eat Lunch.cpp
171. Excel Sheet Column Number.cpp
171. Excel Sheet Column Number.cpp
1710. Maximum Units on a Truck.cpp
1710. Maximum Units on a Truck.cpp
1727. Largest Submatrix With Rearrangements.cpp
1727. Largest Submatrix With Rearrangements.cpp
1732. Find the Highest Altitude.cpp
1732. Find the Highest Altitude.cpp
1742. Maximum Number of Balls in a Box.cpp
1742. Maximum Number of Balls in a Box.cpp
1752. Check if Array Is Sorted and Rotated.cpp
1752. Check if Array Is Sorted and Rotated.cpp
1768. Merge Strings Alternately.cpp
1768. Merge Strings Alternately.cpp
1769. Minimum Number of Operations to Move All Balls to Each Box.cpp
1769. Minimum Number of Operations to Move All Balls to Each Box.cpp
179. Largest Number.cpp
179. Largest Number.cpp
1796. Second Largest Digit in a String.cpp
1796. Second Largest Digit in a String.cpp
1800. Maximum Ascending Subarray Sum.cpp
1800. Maximum Ascending Subarray Sum.cpp
1816. Truncate Sentence.cpp
1816. Truncate Sentence.cpp
1832. Check if the Sentence Is Pangram.cpp
1832. Check if the Sentence Is Pangram.cpp
1844. Replace All Digits with Characters.cpp
1844. Replace All Digits with Characters.cpp
View all files
About
It contains all good questions of LeetCode
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.