Skip to content

Tag Archives: Bitwise-AND

Given an integer N denoting the size of an array and two arrays containing Bitwise AND and Bitwise OR of adjacent elements of the array… Read More
Given an array arr[] of size N and an integer K, the task is to find the count of all the ordered pairs (i, j)… Read More
Given an array arr[] of size N, the task is to find if there exists a pair in the array, such that their bitwise XOR… Read More
Given a binary string S of length N, consisting of 0s and 1s. The task is to count the number of triplet (i, j, k)… Read More
Given a singly linked list, the task is to Count the pairs of nodes with greater Bitwise AND than Bitwise XOR. Examples: Input: list: 1->4->2->6->3Output:… Read More
Given an array arr that contains N positive Integers. Find the count of all possible pairs whose bit wise XOR value is greater than bit… Read More
Given an array arr that contains N positive Integers. Find the count of all possible pairs whose bitwise XOR value is greater than bitwise AND… Read More
Given an integer K, the task is to find three distinct integers A, B and C such that  ( A ∣ B ) & (… Read More
Given an array A[] of N integers and an integer K, the task is to find the minimum number of replacements of array elements required… Read More
Given array of integers arr[] and queries[] of size N and Q, the task is to find the largest index for each query Q[i] such… Read More
Given an integer N denoting the size of an array and the bitwise AND (K) of all elements of the array. The task is to determine… Read More
Given 3 integers A, B, and N the task is to perform alternate AND-OR operations on A and B, and then assign the result of… Read More
Given an array arr[] containing N non-negative integers, the task is to find the maximum AND value among all the subsets having length K.  Examples: … Read More
Given a number N, the task is to find the longest range of integers [L, R] such that 1 ≤ L ≤ R ≤ N… Read More
Given two integers N and K, The task is to find the count of all possible arrays of size N with maximum sum & bitwise… Read More

Start Your Coding Journey Now!