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
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
codeAligned
/
InterviewBit-Topicwise-Solutions
Public
forked from
black-shadows/InterviewBit-Topicwise-Solutions
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
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
InterviewBit-Topicwise-Solutions
/
Arrays
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
InterviewBit-Topicwise-Solutions
/
Arrays
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
ARRAY_BUG.cpp
ARRAY_BUG.cpp
AddOneToNumber.cpp
AddOneToNumber.cpp
Adobe,Microsoft-AntiDiagonals.cpp
Adobe,Microsoft-AntiDiagonals.cpp
Alternate positive and negative elements.cpp
Alternate positive and negative elements.cpp
Amazon,VMWare,Riverbed-FindDuplicateInArray.cpp
Amazon,VMWare,Riverbed-FindDuplicateInArray.cpp
Array With Consecutive Elements.cpp
Array With Consecutive Elements.cpp
Count of Range Sum.cpp
Count of Range Sum.cpp
Count of Smaller Numbers After Self.cpp
Count of Smaller Numbers After Self.cpp
Count pairs in array whose sum is divisible by the given number.cpp
Count pairs in array whose sum is divisible by the given number.cpp
Elements which have at-least two greater elements.cpp
Elements which have at-least two greater elements.cpp
Falling Squares.cpp
Falling Squares.cpp
Find The Next.cpp
Find The Next.cpp
Find duplicate rows in a binary matrix.cpp
Find duplicate rows in a binary matrix.cpp
FindDuplicateInArray.cpp
FindDuplicateInArray.cpp
FindPermutation.cpp
FindPermutation.cpp
FirstMissingInteger.cpp
FirstMissingInteger.cpp
Flip.cpp
Flip.cpp
HotelBookingsPossible.cpp
HotelBookingsPossible.cpp
Inversion count in an array.cpp
Inversion count in an array.cpp
KthRowOfPascalTriangle.cpp
KthRowOfPascalTriangle.cpp
LargestNumber.cpp
LargestNumber.cpp
Length of longest consecutive ones.cpp
Length of longest consecutive ones.cpp
MAXSPROD.cpp
MAXSPROD.cpp
Max Chunks To Make Sorted 2.cpp
Max Chunks To Make Sorted 2.cpp
Max Chunks To Make Sorted.cpp
Max Chunks To Make Sorted.cpp
MaxDistance.cpp
MaxDistance.cpp
MaxNonNegativeSubArray.cpp
MaxNonNegativeSubArray.cpp
MaxSumContiguousSubArray.cpp
MaxSumContiguousSubArray.cpp
Maximum Difference.cpp
Maximum Difference.cpp
MaximumAbsoluteDifference.cpp
MaximumAbsoluteDifference.cpp
MaximumConsecutiveGap.cpp
MaximumConsecutiveGap.cpp
MaximumUnsortedSubarray.cpp
MaximumUnsortedSubarray.cpp
MergeIntervals.cpp
MergeIntervals.cpp
MergeOverlappingIntervals.cpp
MergeOverlappingIntervals.cpp
MinStepsInInfiniteGrid.cpp
MinStepsInInfiniteGrid.cpp
Minimise the maximum difference between the heights.cpp
Minimise the maximum difference between the heights.cpp
Minimum Absolute Difference.cpp
Minimum Absolute Difference.cpp
Minimum Size Subarray Sum.cpp
Minimum Size Subarray Sum.cpp
Minimum Swaps 2.cpp
Minimum Swaps 2.cpp
Minimum operations of given type to make all elements of a matrix equal.cpp
Minimum operations of given type to make all elements of a matrix equal.cpp
Minimum swaps required to bring all elements less than or equal to k together.cpp
Minimum swaps required to bring all elements less than or equal to k together.cpp
Multiple left rotations of the array.cpp
Multiple left rotations of the array.cpp
Multiplication of previous and next.cpp
Multiplication of previous and next.cpp
NBy3RepeatNumber.cpp
NBy3RepeatNumber.cpp
NextPermutation.cpp
NextPermutation.cpp
Noble Integer.cpp
Noble Integer.cpp
Number of sextuplets (or six values) that satisfy an equation.cpp
Number of sextuplets (or six values) that satisfy an equation.cpp
PascalTriangleRows.cpp
PascalTriangleRows.cpp
Rearrange the array.cpp
Rearrange the array.cpp
Repeat&MissngNumberArray.cpp
Repeat&MissngNumberArray.cpp
Reverse pairs.cpp
Reverse pairs.cpp
RotateMatrix.cpp
RotateMatrix.cpp
Rotated Arrays.cpp
Rotated Arrays.cpp
Search in a row wise and column wise sorted matrix.cpp
Search in a row wise and column wise sorted matrix.cpp
SetMatrixZeros.cpp
SetMatrixZeros.cpp
Size three subsequences divisible by B.cpp
Size three subsequences divisible by B.cpp
SpiralOrderMatrix-I.cpp
SpiralOrderMatrix-I.cpp
SpiralOrderMatrix-II.cpp
SpiralOrderMatrix-II.cpp
Sub-matrix Sum Queries.cpp
Sub-matrix Sum Queries.cpp
Sum of adjacent elements is always even.cpp
Sum of adjacent elements is always even.cpp
Toeplitz Matrix.cpp
Toeplitz Matrix.cpp
TripletsWithSumBetweenGivenRange.cpp
TripletsWithSumBetweenGivenRange.cpp
WaveArray.cpp
WaveArray.cpp
View all files
You can’t perform that action at this time.