Given a circular array arr[] consisting of N integers, the task is to replace all the array elements with the nearest possible power of its… Read More

# Tag Archives: array-rearrange

Given an array arr[] of size N, the task is to find the minimum number of array elements required to be removed such that the… Read More

Given an array arr[] consisting of N integers, the task is to find the remaining array element after subtracting each element from its next adjacent… Read More

Given an array arr[] consisting of 2*N integers, the task is to check if it is possible to rearrange the array elements such that arr[2… Read More

Given an array arr[] of size N, the task is to replace a pair of array elements whose Bitwise XOR is even by their Bitwise… Read More

Given an array arr[] consisting of N positive integers, replace pairs of array elements whose Bitwise AND exceeds Bitwise XOR values by their Bitwise AND… Read More

Given an array arr[] of size N (consisting of duplicates), the task is to check if the given array can be converted to a non-decreasing… Read More

Given an array arr[] consisting of N integers and an integer X, the task is to find the minimum cost required to make all array… Read More

Given an array, arr[] consisting of N integers, the task is to minimize the number of increments of array elements required to make all differences… Read More

Given an array arr[] consisting of N positive integers, the task is to find the minimum number of increments required to make the array arr[]… Read More

Given two arrays A[] and B[] of size N and M respectively, where each element is in the range [0, 9], the task is to… Read More