# Tag Archives: Bitwise-OR

Given an array arr[] of N strings. The task is to find the count of all possible pairs of strings such that their concatenations has… Read More
Given an array arr[] of N positive integers and a number K, the task is to find the maximum value of bitwise OR of the… Read More
Given an array arr[] of N positive elements, the task is to find the maximum bitwise OR value of a pair from the given array.Examples:… Read More
Given Bitwise AND, OR, and XOR of N elements of an array denoted by a, b, c. The task is to find the elements of… Read More
Given an array arr[] of N positive integers the task is to find the minimum value of Bitwise XOR of Bitwise OR and AND of… Read More
Given an array A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consists… Read More
Given a number X, calculate number of possible pairs (a, b) such that bitwise or of a and b is equal to X and number… Read More
Given an array arr[] containing N positive integers, the task is to find the maximum bitwise OR value of a pair in the given array… Read More
The bit_or is an inbuilt function in C++ which is used to perform bitwise_or and return the result after applying the bitwise_or operation on it’s… Read More
Given a value K and a binary tree, the task is to find out the number of subtrees having bitwise OR of all its elements… Read More
Given an array arr[] of size N consisting of non-negative integers, the task is to find the number of non-empty subsets of the array such… Read More
Given a number N, the task is to perform the bitwise operations on digits of the given number N. The bitwise operations include:   Finding the… Read More
Given an integer N. The task is to find the XOR and OR of all N digit palindromic numbers.Examples   Input: 3 Output: XOR = 714 and… Read More
Given a number N, the task is to find the bitwise OR( | ) of all even numbers from 1 to N. Examples:  Input: 2 Output:… Read More
Given three integers N, S, and K, the task is to create an array of N positive integers such that the bitwise OR of any… Read More