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 }}
TheCodingBlogs
/
Tech-Interview-Preparation
Public
forked from
sastava007/Tech-Interview-Preparation
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
Tech-Interview-Preparation
/
Leetcode
/
Array
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Tech-Interview-Preparation
/
Leetcode
/
Array
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Add Binary.cpp
Add Binary.cpp
Add Operators.cpp
Add Operators.cpp
Add Strings.cpp
Add Strings.cpp
Best Time To Buy And Sell Stock 3 & 4.cpp
Best Time To Buy And Sell Stock 3 & 4.cpp
Best time to buy and sell stock 1.cpp
Best time to buy and sell stock 1.cpp
Car Pooling.cpp
Car Pooling.cpp
Container With Maximum Water.cpp
Container With Maximum Water.cpp
Continious subarray sum.cpp
Continious subarray sum.cpp
Decode Ways.cpp
Decode Ways.cpp
Employee Free Time.cpp
Employee Free Time.cpp
Exam Rooms.cpp
Exam Rooms.cpp
Exclusive time of function.cpp
Exclusive time of function.cpp
Find K closest elements.cpp
Find K closest elements.cpp
Find Median from Data Stream.cpp
Find Median from Data Stream.cpp
Find Pivot.cpp
Find Pivot.cpp
Find all dissappeared number in an array.cpp
Find all dissappeared number in an array.cpp
Find duplicate number in array.cpp
Find duplicate number in array.cpp
Find first and last occurence of element.cpp
Find first and last occurence of element.cpp
First Bad Version.cpp
First Bad Version.cpp
Friends of Appropriate Ages.cpp
Friends of Appropriate Ages.cpp
Insert Interval.cpp
Insert Interval.cpp
Intersection of Three 3 sorted arrays.cpp
Intersection of Three 3 sorted arrays.cpp
Intersection of Two Arrays.cpp
Intersection of Two Arrays.cpp
Intersection of two arrays II.cpp
Intersection of two arrays II.cpp
Interval List Intersection.cpp
Interval List Intersection.cpp
K Closest Points.cpp
K Closest Points.cpp
Koko Eating Bananas.cpp
Koko Eating Bananas.cpp
Kth Largest Element in Array.cpp
Kth Largest Element in Array.cpp
Longest Continious Increasing Subsequence(Subarray).cpp
Longest Continious Increasing Subsequence(Subarray).cpp
Majority Element.cpp
Majority Element.cpp
Majority Element2.cpp
Majority Element2.cpp
Maximum Consecutive 1s.cpp
Maximum Consecutive 1s.cpp
Maximum sum in circular subarray.cpp
Maximum sum in circular subarray.cpp
Maximum sum of 3 non overlapping subarray.cpp
Maximum sum of 3 non overlapping subarray.cpp
Median of Two Sorted Arrays.cpp
Median of Two Sorted Arrays.cpp
Meeting Rooms.cpp
Meeting Rooms.cpp
Meeting Rooms2.cpp
Meeting Rooms2.cpp
Merge Intervals.cpp
Merge Intervals.cpp
Merge Sorted Array.cpp
Merge Sorted Array.cpp
Merge Three 3 Sorted Arrays.cpp
Merge Three 3 Sorted Arrays.cpp
Minimum Arrows to Burst Balloons.cpp
Minimum Arrows to Burst Balloons.cpp
Minimum in rotated sorted array.cpp
Minimum in rotated sorted array.cpp
Missing Element in Sorted Array.cpp
Missing Element in Sorted Array.cpp
Monotonic Array.cpp
Monotonic Array.cpp
Move Zeroes.cpp
Move Zeroes.cpp
Next Permutation.cpp
Next Permutation.cpp
Non Overlapping Intervals.cpp
Non Overlapping Intervals.cpp
Pair with given sum in Sorted and rotated array.cpp
Pair with given sum in Sorted and rotated array.cpp
Pancake Sorting.cpp
Pancake Sorting.cpp
Partition Equal Subset Sum.cpp
Partition Equal Subset Sum.cpp
Peak Element.cpp
Peak Element.cpp
Plus One.cpp
Plus One.cpp
Product of array except itself.cpp
Product of array except itself.cpp
Range Sum Query 2D Immutable.cpp
Range Sum Query 2D Immutable.cpp
Read N characters given Read4.cpp
Read N characters given Read4.cpp
Remove duplicates element.cpp
Remove duplicates element.cpp
Reverse to Make Equal.cpp
Reverse to Make Equal.cpp
Rotate Arrays.cpp
Rotate Arrays.cpp
Search in rotated sorted array.cpp
Search in rotated sorted array.cpp
Single Element in Sorted Array.cpp
Single Element in Sorted Array.cpp
Sort Colors.cpp
Sort Colors.cpp
Sorted Iterator.cpp
Sorted Iterator.cpp
Split Array With Equal Sum.cpp
Split Array With Equal Sum.cpp
Target Sum.cpp
Target Sum.cpp
Task Scheduler.cpp
Task Scheduler.cpp
Teemo Attacking.cpp
Teemo Attacking.cpp
Three 3 Sum Closest.cpp
Three 3 Sum Closest.cpp
Three Sum.cpp
Three Sum.cpp
Top K Frequent Words.cpp
Top K Frequent Words.cpp
Top K frequent Elements.cpp
Top K frequent Elements.cpp
Two Sum sorted.cpp
Two Sum sorted.cpp
Two Sum.cpp
Two Sum.cpp
Valid Numbers.cpp
Valid Numbers.cpp
Valid Sudoku.cpp
Valid Sudoku.cpp
Verifying an Alien Dictionary.cpp
Verifying an Alien Dictionary.cpp
Wiggle Sort Wave Array.cpp
Wiggle Sort Wave Array.cpp
Wood Cut or Cut Wood.cpp
Wood Cut or Cut Wood.cpp
View all files
You can’t perform that action at this time.