Articles in this series
Introduction In simple terms, Data Structures are ways to arrange data in the computer memory so that it can be used efficiently. Whereas, Algorithms...
Now we will understand the different types of questions on Arrays. Q1. Write a program to reverse an array. A1. There are two ways to approach this...
Moving on to some more interview questions from Arrays: Q6. Find the Union and Intersection of two arrays. A6. There are two approaches to this...
Q12. Merge two sorted arrays without using any extra space. Assume one array to have two times space so that merging can be performed. A12. We will...
Q17. Given 3 arrays sorted in increasing order. Find the common elements in all 3 arrays. A17. In this question, we will use a 3 pointer...
Q21. Check if the given array is a subset of another array. A21. To check this we transfer the elements of the array to a set, hence removing...