# Category Archives: Arrays

Given an array arr[] of size N and an array Q[], the task is to calculate the sum of Bitwise XOR of all elements of… Read More
Given an array arr[] of size N, the task is to find the minimum sum of absolute differences of an array element with all elements… Read More
Given a 2D array arr[][], representing width of bricks of the same height present on a wall, the task is to find the minimum number… Read More
Given a positive integer N, the task is to calculate the Bitwise XOR of first N numbers which are a product of exactly two distinct… Read More
Given a sorted array arr[] of size N and an integer K, the task is to find Kth smallest element present in the array. The… Read More
Given an array arr[] consisting of N strings, the task is to sort the strings in increasing order of the sum of ASCII value of… Read More
Given an array arr[] of size N containing strings, the task is to count the number of strings having sum of ASCII values of characters… Read More
Given a sorted array arr[] of size N and an integer key, the task is to find the index at which key is present in… Read More
Given an array arr[] consisting of N integers, where the ith element represents the range of a sprinkler i.e [i-arr[i], i+arr[i]] it can water, the… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to make the sum of all K-length subarrays equal… Read More
Given two arrays A[] and B[] of sizes N, the task is to find the maximum sum of Bitwise AND of same-indexed elements in the… Read More
Given two arrays A[] and B[] consisting of N positive integers such that each array element A[i] is placed at the ith position on the… Read More
Given an array arr[] consisting of N positive integers, the task is to find the prefix factorials of a prefix sum array of the given… Read More
Given an array, arr[] of size N denoting a permutation of numbers from 1 to N, the task is to count the number of inversions… Read More
Given two arrays W[] and L[] consisting of N positive integers, where W[i] is initially located at position i on an infinite number line. In… Read More