Given an array arr[] consisting of N strings, the task is to find the maximum product of length of the strings arr[i] and arr[j] for… Read More

# Category Archives: Arrays

Given an sorted array arr[] consisting of N elements, the task is to find the minimum of all maximum differences between adjacent elements of all… Read More

Given a 2D array of strings arr[][4], representing the scores of M football matches played in a tournament involving N teams, the task is to… Read More

Given an array arr[] of size N, the task is to check if it is possible to sort the array using the following operations: Swap(arr[i],… Read More

Given three arrays a[], b[] and c[] of sizes A, B and C respectively, the task is to find the minimum possible value of abs(a[i]… Read More

Given two positive integers N and K, the task is to count the number of triplets (a, b, c) such that 0 < a, b,… Read More

Given a binary array arr[] of size N, the task is to find the total cost required to make all array elements equal to 1,… Read More

Given an array arr[] consisting of N integers, the task is to modify the array by replacing each array element with the number obtained by… Read More

Given two arrays A[] and B[], both consisting of a permutation of first N natural numbers, the task is to count the minimum number of… Read More

Given an array arr[] consisting of N positive integers and a positive integer K, the task is to minimize the maximum element present in the… Read More

Given a circular array arr[] consisting of N positive integers, the task is to modify the array by replacing each array element with the nearest… Read More

Given an array A[] consisting of characters ‘U’, ‘D’, ‘L’, and ‘R’ representing directions up, down, left, and right, and another array B[] consisting of… Read More

Given an array arr[] consisting of N integers, the task is to count the number of pairs whose Bitwise XOR is odd, that can be… Read More

Given an array arr[] consisting of N positive integers and a positive integer K, the task is to find the maximum possible integer X, such… Read More