# 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