Program to Find the smallest missing number
Description This program is for finding smallest number that is missing from the array. Given a sorted array of n distinct integers where each integer is in the range from…
All Program Related To Array And Data Structure
Description This program is for finding smallest number that is missing from the array. Given a sorted array of n distinct integers where each integer is in the range from…
Description Mode is a value which occur most frequently in a array. Ex: arr[] = {3,6,2,3,7} Mode will be 3 as it's frequency is 2 which is greatest in this…
Description For calculation of median, the array must be sorted. 1) If number of elements of array even then median will be average of middle two elements. ex : arr[]…
Description To reverse array using recursion, follow below program. C/C++ /* C Program to Reverse an Array using Recursion */ //Save it as ReversalArrayUsingRecursion.c #include<stdio.h> int main(){ int i, n;…
Description To rearrange an array such that arr[i] = i, first check if any element is equal to index or not, if yes swap the element. At last, check if…
Description Let we have arr[] = {1, 5 , 8, 6 , 4} and 1)we have to find 8 then our output will be 'Element 8 is present at position…
Description * To multiply two matrices, the number of columns of the first matrix should be equal to the number of rows of the second matrix. * If multiplication is…
Description * To add two matrices, the row and column of first matrix should be equal to row and column of second matrix respectively. * Addition is performed between corresponding…
Description The transpose of a matrix is a new matrix whose rows are the columns of the original. If matrix having dimension m*n the it's transpose having dimension will be…
Description * In two dimensional array first subscript denotes row, second denotes column. * Two dimensional array is an array of one dimensional arrays. * In 2D array, size of…