# Tag Archives: median-finding

Given a tree with N vertices from 0 to N – 1 (0th node is root) and val[] where val[i] denotes the value of the… Read More
Given an integer N (N ≥ 2), the task is to find the maximum median that can be created by forming optimal sum pairs from… Read More
Given two arrays x[] and y[] of N integers, the task is to form an array z[] of x[i] + y[j], (0 ≤i, j <… Read More
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
Given an array arr[] of length N (1≤ arr[i] ≤ N) and an integer K. The task is to find the largest median of any… 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
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