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
Developer articles
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 }}
areefasamar
Competitive-Programming
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
Competitive-Programming
/
LeetCode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
Competitive-Programming
/
LeetCode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Add Binary.cpp
Add Binary.cpp
Add Strings.cpp
Add Strings.cpp
Add Two Numbers.c
Add Two Numbers.c
Add two Integers.c
Add two Integers.c
Array Partition.c
Array Partition.c
Best Time to Buy and Sell Stock.cpp
Best Time to Buy and Sell Stock.cpp
Binary Search.cpp
Binary Search.cpp
Build Array From Permutation.c
Build Array From Permutation.c
Convert a Number to Hexadecimal.cpp
Convert a Number to Hexadecimal.cpp
Count Odd Numbers in an Interval Range.c
Count Odd Numbers in an Interval Range.c
Defuse The Bomb.cpp
Defuse The Bomb.cpp
Degree of an Array.c
Degree of an Array.c
Distribute Candies.c
Distribute Candies.c
Duplicate Emails.sql
Duplicate Emails.sql
Fair Candy Swap.cpp
Fair Candy Swap.cpp
Fibonacci Number.cpp
Fibonacci Number.cpp
Find All Duplicates in an Array.c
Find All Duplicates in an Array.c
Find Common Characters.c
Find Common Characters.c
Find Numbers with Even Number of Digits.c
Find Numbers with Even Number of Digits.c
Find Resultant Array After Removing Anagrams.cpp
Find Resultant Array After Removing Anagrams.cpp
Find The Difference.cpp
Find The Difference.cpp
Find Winner on a Tic Tac Toe Game.cpp
Find Winner on a Tic Tac Toe Game.cpp
Fizz Buzz.c
Fizz Buzz.c
Happy Number.c
Happy Number.c
Implement Stack using Queues.cpp
Implement Stack using Queues.cpp
Intersection of Two Arrays.c
Intersection of Two Arrays.c
Is Subsequence.c
Is Subsequence.c
Keyboard Row.c
Keyboard Row.c
Length of Last Word.c
Length of Last Word.c
Longest Common Prefix.c
Longest Common Prefix.c
Max Consecutive Ones.c
Max Consecutive Ones.c
Maximum Subarray.cpp
Maximum Subarray.cpp
Maximum Units on a Truck.cpp
Maximum Units on a Truck.cpp
Merge Sorted Array.cpp
Merge Sorted Array.cpp
Min Cost Climbing Stairs.cpp
Min Cost Climbing Stairs.cpp
Missing Number.c
Missing Number.c
Move Zeroes.c
Move Zeroes.c
Number of 1 Bits.c
Number of 1 Bits.c
Number of Good Pairs.c
Number of Good Pairs.c
Number of steps to reduce a Number to Zero.c
Number of steps to reduce a Number to Zero.c
Palindrome Number.c
Palindrome Number.c
Plus One.c
Plus One.c
Power Of Four.cpp
Power Of Four.cpp
Power Of Three.cpp
Power Of Three.cpp
Power Of Two.cpp
Power Of Two.cpp
Print in Order.cpp
Print in Order.cpp
Ransom Note.cpp
Ransom Note.cpp
Relative Ranks.cpp
Relative Ranks.cpp
Remove Duplicates from Sorted Array.c
Remove Duplicates from Sorted Array.c
Remove Element.c
Remove Element.c
Reshape the Matrix.c
Reshape the Matrix.c
Reverse String.c
Reverse String.c
Roman to Integer.c
Roman to Integer.c
Rotate String.c
Rotate String.c
Running Sum of 1D Array.c
Running Sum of 1D Array.c
Shuffle The Array.cpp
Shuffle The Array.cpp
Single Number.c
Single Number.c
Subtract the Product and Sum of Digits of an Integer.c
Subtract the Product and Sum of Digits of an Integer.c
Sum of Two Integers.c
Sum of Two Integers.c
Third Maximum Number.cpp
Third Maximum Number.cpp
Toeplitz Matrix.c
Toeplitz Matrix.c
Two Sum.c
Two Sum.c
Ugly Number.c
Ugly Number.c
Valid Parentheses.cpp
Valid Parentheses.cpp
Valid Perfect Square.c
Valid Perfect Square.c
Word Pattern.c
Word Pattern.c
WordSearch.cpp
WordSearch.cpp
View all files
You can’t perform that action at this time.