Skip to content

Category Archives: Arrays

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
Given an array arr[] consisting of N integers, the task is to count the number of distinct pairs (arr[i], arr[j]) in the array such that… Read More
Given two N-digit positive integers X and Y, the task is to find the minimum absolute difference between both the integers possible by rearranging the… Read More
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 two arrays arr1[] and arr2[] consisting of N and M integers respectively, the task is to print the Bitwise XOR of Bitwise AND of… Read More
Given an array arr[] consisting of N integers, the task is to find the lexicographically largest permutation of the given array possible by exactly one… Read More
Given an integer K and an array A[] of size N, the task is to create a new array with sum K with minimum number… 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 two arrays of strings arr[] and k[] of size N and M respectively, the task is to sort the array arr[] after replacing each… Read More
Given an array arr[] and an integer K, the task is to find the absolute difference between the ceil of the total sum of the… Read More
Given an array A[] of size N, the task is to sort the array in increasing order using In-Place Merge Sort. Examples: Input: A =… Read More
Given an array arr[] consisting of N coordinates in the Cartesian Plane, the task is to find the number of coordinates, such as (X, Y),… Read More