Given an array arr[] consisting of N integers, the task is to find the maximum sum of any subarray possible after removing at most one… Read More

# Tag Archives: array-rearrange

Given an array consisting of first N odd numbers, the task is to find the minimum number of operations required to make all the array… Read More

Given an array arr[] consisting of N integers, the task is to check whether it is possible to make the given array strictly increasing by… Read More

Given an array arr[] consisting of N positive integers, the task is to find the maximum possible sum of the remaining array elements after repeatedly… Read More

Given an array arr[] of size N and an integer K, the task is to replace every array element consisting of K as a digit,… Read More

Giver an array arr[] consisting of N integers, the task is to perform right shift operations on array elements to convert the given array into… Read More

Given a square matrix mat[][] of dimension N and an integer K, the task is to rotate the matrix by 90 degrees K times without… Read More

Given an array arr[] consisting of N pairs, where each pair represents the value and ID respectively, the task is to check if it is… Read More

Given an array arr[] consisting of N positive integers, the task is to sort the array in increasing order with respect to the count of… Read More

Given an array arr[] consisting of N integers, the task is to minimize the cost of converting all array elements to a Fibonacci Number, where… Read More

Given an array arr[] consisting of first N natural numbers, where arr[i] = i ( 1-based indexing ) and a positive integer K, the task… Read More

Given an array arr[] consisting of N positive integers, the task is to find the maximum absolute difference between the sum of the array elements… Read More

Given an array arr[] consisting of N positive integers, the task is to sort the array arr[] according to the increasing order of GCD of… Read More

Given an array arr[] consisting of N integers and two positive integers L and R, the task is to find the farthest co-prime number in… Read More