# Tag Archives: array-rearrange

Given a sorted array arr[] consisting of N positive integers, the task is to rearrange the array such that all the odd indices elements come… Read More
Given an array arr consisting of N unique integers, the task is to rearrange the array such that element at index i of array should… Read More
Given an array arr[] of length N and an integer K, the task is to find the maximize the length of the array by appending… Read More
Given an array arr[] consisting of N integers, the task is to repeatedly select triplets and remove the maximum and minimum elements from the triplets… Read More
Given two arrays A[] and B[] consisting of N positive integers, the task is to the Bitwise XOR of same indexed array elements after rearranging… Read More
Given an array arr[] consisting of N integers, the task is to check if the array can be sorted by swapping adjacent elements any number… Read More
Given an array, the task is to shift the middle element to the start and end of the array alternatively, till the middle element becomes… Read More
Given an circular array arr[] consisting of N integers, the task is to find the minimum number of operations to reduce all elements of a… Read More
Given an array arr[] consisting of N integers and following are the three operations that can be performed using any external number X: Add X… Read More
Given an array, arr[] of N distinct integers and an integer K, the task is to rearrange the given array in such a way, that… Read More
Given an array arr[] of size N, and integers M and K, the task is to find the maximum possible value of the smallest array… Read More
Given a 2D array grid[][] of size N * M, consisting of the characters “1”, “0”, and “*”, where “*” denotes an empty space and… Read More
Given an array arr[] of size N, the task is to print the minimum number of moves required to make all array elements equal by… Read More
Given an array arr[] of size N, the task is to count the number of operations required to make all array elements equal by replacing the… Read More
Given an array arr[] of size N, the task is to check if it is possible to convert all array elements to 0s, by subtracting… Read More