Skip to content

Tag Archives: Bitwise-XOR

Given an array arr[] with N elements, the task is to find whether all the elements of the given array can be made 0 by… Read More
Given a Binary Tree, the task is to find the maximum of all the XOR value of all the nodes in the path from the… Read More
Given two numbers N and M. The task to convert both the numbers in the binary form then add respective bits of both the binary… Read More
Given an array arr[] and integer K, the task is to find the minimum bitwise XOR sum of any subarray of size K in the… Read More
Given a directed graph with N nodes and E edges, a source S and a destination D nodes. The task is to find the path… Read More
Given an array of non-negative integers. Choose an integer P and take XOR of P with all elements of the array. The task is to… Read More
Given a Binary Tree, the task is to print all root-to-leaf paths of this tree whose xor value is non-zero. Examples:  Input: 10 / \… Read More
The bit_xor is an inbuilt function in C++ which is used to perform bitwise_xor and return the result after applying the bitwise_xor operation on it’s… Read More
Given an array A, consisting of N non-negative integers, find the sum of xor of all unordered triplets of the array. For unordered triplets, the… Read More
Given an array arr and a number K, find the new array formed by performing XOR of the corresponding element from the given array with… Read More
Given an array A consisting of N non-negative integers, the task is to choose an integer K such that the maximum of the xor values… Read More
Given a value K and a binary tree, we have to find out the total number of paths from the root to leaf nodes having… 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 binary array arr[], the task is to calculate the bitwise XOR of all the elements in this array and print it. Examples:  Input:… Read More
Given an array arr[] of length N, the task is to find the XOR of pairwise sum of every possible unordered pairs of the array.… Read More

Start Your Coding Journey Now!