# Tag Archives: Bitwise-OR

Given an array arr[] consisting of N positive integers, the task is to count the number of subarrays whose Bitwise OR of its elements even.… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to print an array generated such that the sum of… Read More
Bit Manipulation is a technique used in a variety of problems to get the solution in an optimized way. This technique is very effective from… Read More
Given an integer N, the task is to find the count total number of pairs (P, Q) from the range 0 ≤ P, Q <… Read More
Given a matrix B[][] of dimensions N * M, the task is to generate a matrix A[][] of same dimensions that can be formed such… Read More
Given an array arr[] consisting of non-negative integers, the task for each array element arr[i] is to print the sum of Bitwise OR of all… Read More
Given an integer N, the task is to find the decimal value of the binary string formed by concatenating the binary representations of all numbers… Read More
Given a matrix, mat[][] of size N * M, the task is to find the minimum count of operations required to make all elements of… Read More
Given a positive integer N, the task is to perform the following sequence of operations on the binary representation of N in C. Finding a… Read More
Given an N-ary Tree consisting of N nodes valued from 1 to N, an array arr[] consisting of N positive integers, where arr[i] is the… Read More
Given two integers X and Y, representing Bitwise XOR and Bitwise AND of two positive integers, the task is to calculate the Bitwise OR value… Read More
Given an integer N, the task is to find all non-negative pairs (A, B) such that the sum of Bitwise OR and Bitwise AND of… Read More
Given an array arr[] of length N, the task is to find the Bitwise OR of the sum of all possible subsequences from the given… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to count all pairs possible from the given array… Read More
Given an array arr[] of size N, the task is to find the Bitwise XOR of all possible unordered pairs from the given array. Examples:… Read More