Skip to content

Tag Archives: Bitwise-OR

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 number 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
Given an array arr[] of N positive integers, the task is to find the minimum number of elements to be deleted from the array so… Read More
Given an array arr[] of N elements, the task is to remove one element from the array such that the OR value of the array… Read More
Given a range [L, R], the task is to find a pair (X, Y) such that L ≤ X, Y ≤ R and (X |… Read More
Given an array arr[], the task is to find the longest subsequence with a given OR value M. If there is no such sub-sequence then… Read More
Given an array arr[], the task is to find the longest subsequence with a given OR value M. If there is no such sub-sequence then… Read More
Given an array arr[] of length N, the task is to find the number of subsets with a given OR value M.Examples:  Input: arr[] =… Read More
Given a range [L, R], the task is to find the maximum bitwise OR of some pair (a, b) from the given range.Examples:   Input: L… Read More
Given a Binary Tree (Every node has at most 2 children) where each node has value either 0 or 1. The task is to convert… 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 an array arr[] of integers and an integer K, we can perform the Bitwise OR operation between any array element and K any number… Read More

Start Your Coding Journey Now!