Category: arrays

0

Largest Rectangular Area in Histogram

“Largest Rectangular Area in Histogram” is one of the favorite technical interview problem, asked in many product-based company interview. Problem: We are given a histogram made up of contiguous bars of same width. Our task...

0

Linked List Vs. Arrays

Both Linked list and Arrays are linear dataz structure used to store data. The major difference between array and linked list lies in the structure of the array and linked list and how data...

0

Sort an Array of 0s and 1s

“Sort an Array of 0s and 1s” is one of the favorite technical interview problem of array data structure. Here, we are given an array of size ‘n’ and our task is to sort...

0

Find mean of an Array

“Find mean of an Array” is a basic problem of array data structure. Here, we are given an array of size ‘n’ and our task is to find and print the mean of the...

0

Find Majority Element of an Array

“Find Majority Element of an Array” is one of the most favorite technical interview problem based on array data structure. Here, we are given an array of size ‘n’ and our task is to...

0

Find the Equilibrium Index of the Array

“Find the Equilibrium Index of the Array” is one of the favorite technical interview problem based on array data structure. Here, we are given an array of size ‘n’ and our task is to...

0

Print all Subarray of Given Array

“Print all Subarray of Given Array” is an important problem to understand the concept of subarrays of arrays. Here, we are given an array of size ‘n’ and our task is to print all...