Skip to content

Tag Archives: Bitwise-XOR

Given two numbers n1 and n2. The task is to find the position of first mismatching bit in the binary representation of the two numbers… Read More
Given an array of N integers, the task is to find the number of pairs (i, j) such that A[i] ^ A[j] is even.  Examples: … Read More
Given two binary strings and . Let be set of all the cyclic permutations of string . The task is to find how many strings in set when XORed with give as… Read More
Given a value X, the task is to find the number Y which will give maximum value possible when XOR with X. (Assume X to be… Read More
Given a binary tree with distinct nodes and a pair of two nodes. The task is to find the XOR of all of the nodes… Read More
Given an integer . The task is to find the number of bits changed after adding 1 to the given number.Examples:   Input : N = 5… Read More
Given an array of integers and a number K. The task is to find the XOR of only those elements of the array whose total… Read More
Given an array of integers. The task is to replace every element by the bitwise xor of all other elements of the array. Examples:  Input:… Read More
Given a string containing only lowercase english alphabets. The task is to find the bitwise XOR of all the prime frequencies of the characters in… Read More
Given a number N, the task is to check if the xor value of the frequency of the digits is zero or not. Examples:  Input:… Read More
Given an array of integers, replace every element with xor of previous and next elements with following exceptions.  First element is replaced by xor of… Read More
Given an array of integers arr[]. The task is to find the bitwise XOR of all the prime numbers present in the array. Examples:  Input:… Read More
Given two integer numbers x and y. Compare and print which one of them has more leading zeros using Bitwise operation. If both the no.… Read More
Given an array of integers ‘arr’, the task is to find the maximum XOR value of any triplet pair among all the possible triplet pairs. … Read More
Given a number N, the task is to find the count of X such that N XOR X == N OR X, where 0<=X<=N Examples:   Input:… Read More

Start Your Coding Journey Now!