# Tag Archives: Bitwise-XOR

Given a matrix arr[][] of dimensions 2 * N, the task is to maximize the sum possible by selecting at most one element from each… Read More
Given two arrays A[] and B[] consisting of N integers (N is odd), the task is to rearrange array B[] such that for each 1… Read More
Given an array arr[]of size N and an integer K, the task is to count the number of pairs from the given array such that… Read More
Given an array arr[]of size N and an integer K, the task is to count the number of pairs from the given array such that… Read More
Given an array arr[] of length N and a positive integer M, the task is to find the Bitwise XOR of all the array elements… Read More
Given a matrix, mat[][] of dimensions N * M, the task is to print the maximum bitwise XOR value that can be obtained for a… Read More
Given an array arr[] of size N, the task is to find the bitwise XOR of all possible unordered pairs of the given array.  Examples:… Read More
Given an array arr[] of size N, the task is to count all possible even length subarrays having bitwise XOR of subarray elements equal to… Read More
Given three binary strings S1, S2, and S3 each of length N, the task is to find the maximum possible Bitwise XOR that can be… Read More
Given an array, arr[] of size N, the task is to count the number of pairs from the given array such that the bitwise AND(&)… Read More
Given an array arr[] consisting of N integers, the task is to find the maximum Bitwise XOR from all the possible pairs in the given… Read More
Given a matrix m[][] of dimensions N × M and an integer K, calculate XOR(i, j) which is equal to the Bitwise Xor of all… Read More
Given an array arr[] of length N, , a matrix of dimensions N * N was defined on the array arr[] where Mi, j =… Read More
Given two binary matrices mat[][] and target[][] of dimensions N * M, the task is to find the minimum cost to convert the matrix mat[][]… Read More
Given an array, initially consisting of 0 as the only element present and Q operations of the following two types: Add(X): Insert X into the… Read More