## Maximum Bitwise AND pair (X, Y) from given range such that X and Y can be same

Given a range [L, R], the task is to find a pair (X, Y), not necessarily distinct. Find the maximum possible value of the bitwise… Read More »

- Find XOR of all elements in an Array
- Count of subarrays of an Array having all unique digits
- Check if a Number is Odd or Even using Bitwise Operators
- Bitwise AND of all the elements of array
- Count number of binary strings without consecutive 1’s : Set 2
- Program to find the Nth natural number with exactly two bits set
- XOR of every element of an Array with a given number K
- Partition of a set into K subsets with equal sum using BitMask and DP
- XOR of elements in a given range with updates using Fenwick Tree
- Bitwise XOR of a Binary array
- Find a Mother vertex in a Graph using Bit Masking
- Count of pairs whose bitwise AND is a power of 2
- Count maximum occurrence of subsequence in string such that indices in subsequence is in A.P.
- Check if left and right shift of any string results into given string
- Count subarrays with sum equal to its XOR value
- Maximum number of set bits count in a K-size substring of a Binary String
- Number of subsets with same AND, OR and XOR values in an Array
- Largest number in the Array having frequency same as value
- Find the largest number smaller than integer N with maximum number of set bits
- Count of binary strings of length N having equal count of 0's and 1's
- Count of subarrays of size K with elements having even frequencies
- XOR of pairwise sum of every unordered pairs in an array
- Find a number such that maximum in array is minimum possible after XOR
- Sum of bit differences for numbers from 0 to N
- Remove all even parity nodes from a Doubly and Circular Singly Linked List
- Maximum weighted edge in path between two nodes in an N-ary tree using binary lifting
- Bitwise operations on Subarrays of size K
- Find the remainder when N is divided by 4 using Bitwise AND operator
- Find the length of the Largest subset such that all elements are Pairwise Coprime
- Turn off the rightmost set bit | Set 2

Given a range [L, R], the task is to find a pair (X, Y), not necessarily distinct. Find the maximum possible value of the bitwise… 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 size N, find the Maximum Xor Subsequence such that both A [ i ] and A [ N – i… Read More »

Given an integer N, the task is to find the numbers which when added after being raised to the Power of 2 gives the integer… Read More »

Prerequisite: Bitset function in STL library Given a number N, the task is to find the absolute difference of the number of set and unset… Read More »

Given an array arr[], the task is to count the number of the unique arrays can be formed by updating the elements of the given… Read More »

Given an integer N, the task is to flip all the bits to the left of rightmost set bit and print the number generated. Examples:… 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 »

There is a series of numbers that have only digits, 4 and 7, and numbers are arranged in increasing order. The first few numbers of… Read More »

Given a string S, the task is to find minimum flips required to convert an initial binary string consisting of only zeroes to S where… Read More »

Given an Array arr[] and an integer K, the task is to count subarrays of size K in which every element appears even number of… Read More »

Given a binary array arr, the task is to find the maximum number of 0s that can be flipped such that the array has no… Read More »

Given an integer array arr[] of consisting of N integers, the task is check if it is possible to divide the given array into K… Read More »

Given an array arr[], the task is to count the pairs in the array with sum equal to twice their bitwise AND, i.e., Examples: Input:… Read More »

Given a number N, the task is to calculate the total number of corresponding different bit in the binary representation for every consecutive number from… Read More »