Tag Archives: Bitwise-AND

Given a positive integer N, the task is to find the permutation of first N natural numbers such that the product of Bitwise AND(&) of… Read More
Given an array arr[] of size N and a positive integer K, the task is to check if the array can be split into K… Read More
Given two arrays arr1[] of size M and arr2[] of size N, the task is to find the sum of bitwise AND of each element… 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 an array of integers A[] consisting of N integers, find the number of triples of indices (i, j, k) such that A[i] & A[j]… Read More
Given an array arr[] consisting of N integers and a positive integer K, the task is to find all permutations of the array arr[] such… 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 six positive integers representing the Bitwise XOR and Bitwise AND of all possible pairs of a triplet (a, b, c), the task is to… Read More
Given a positive integer N, the task is to find the number that can be obtained by flipping consecutive set bits starting from the LSB… Read More
Given an array arr[] of size N, the task is to find the bitwise AND of all possible unordered pairs present in the given array.… 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[] consisting of N integers an array Q[][] consisting of queries of the form {l, r}. For each query {l, r}, the… Read More
Given two integers A and B, the task is to find the maximum of two numbers using Bitwise Operators. Examples: Input: A = 40, B… Read More
Given two integers X and Y, the task is to check if it is possible to reach (X, Y) from (1, 1) by the following… Read More