# Tag Archives: median-finding

Given an array, arr[] of size N., The task is to perform minimum increment or decrement operations on the elements of the array, to make… Read More
My Personal Notes arrow_drop_up Save
We are given a row-wise sorted matrix of size r*c, we need to find the median of the matrix given. It is assumed that r*c… Read More
We are given a row-wise sorted matrix of size r*c, we need to find the median of the matrix given. It is assumed that r*c… Read More
We are given a row-wise sorted matrix of size r*c, we need to find the median of the matrix given. It is assumed that r*c… Read More
We are given a row-wise sorted matrix of size r*c, we need to find the median of the matrix given. It is assumed that r*c… Read More
Given an array arr[] of size N, the task is to find the sum of medians of all sub-array of odd-length. Examples: Input: arr[] =… Read More
Given an array arr[] of size N containing positive integers, the task is to find the maximum number of elements that can be deleted from… Read More
Given two positive integers N and X. The task is to print the maximum median possible by generating an Array of size N with sum… Read More
Given an array arr[] of N elements, the task is to find the value of x that minimizes the value of expression for c =… Read More
Given an array A[] of N integers where N is even, . the task is to generate an array of medians where the median of… Read More
Given an array arr[] consisting of N integers and a positive integer K, the task is to find the number of subarrays of size K… Read More
Given an array arr[ ] of size N, the task is to find the minimum possible value of the expression abs(arr – (b + 1))… Read More
Given an array A[] consisting of N integers(1-based indexing), the task is to find the minimum value of the function  for any possible value of X.… Read More
Given an array arr[] of size N, the task is to find the minimum sum of absolute differences of an array element with all elements… Read More