## Maximum XOR value in matrix

Given a square matrix (N X N), the task is to find the maximum XOR value of a complete row or a complete column. Examples… Read More »

- Find maximum xor of k elements in an array
- Number of subarrays such that XOR of one half is equal to the other
- XOR of all the elements in the given range [L, R]
- Find XOR of numbers from the range [L, R]
- Range Queries to Find number of sub-arrays with a given xor
- Equal Sum and XOR of three Numbers
- XOR of XORs of all sub-matrices
- Quadruplet pair with XOR zero in the given Array
- Alternate XOR operations on sorted array
- Minimum Bitwise XOR operations to make any two array elements equal
- Sum of XOR of all sub-arrays of length K
- Find array such that no subarray has xor zero or Y
- Find a number which give minimum sum when XOR with every number of array of integers
- Longest Subarray having strictly positive XOR
- Choose X such that (A xor X) + (B xor X) is minimized
- Find a sub matrix with maximum XOR
- Find a partition point in array to maximize its xor sum
- Minimizing array sum by applying XOR operation on all elements of the array
- Print steps to make a number in form of 2^X - 1
- Generate all binary strings of length n with sub-string "01" appearing exactly twice
- XOR in a range of a binary array
- Convert given integer X to the form 2^N - 1
- Create a sequence whose XOR of elements is y
- XOR of all the nodes in the sub-tree of the given node
- Check if a number from every row can be selected such that xor of the numbers is greater than zero
- Total pairs in an array such that the bitwise AND, bitwise OR and bitwise XOR of LSB is 1
- Count of sub-arrays whose elements can be re-arranged to form palindromes
- Find the node whose xor with x gives minimum value
- Number of ways for playing first move optimally in a NIM game
- Find the root of the sub-tree whose weighted sum XOR with X is maximum

Given a square matrix (N X N), the task is to find the maximum XOR value of a complete row or a complete column. Examples… Read More »

Given a number n, the task is to find the XOR from 1 to n. Examples : Input : n = 6 Output : 7… Read More »

Given a number n, the task is to check whether this number is a multiple of 4 or not without using +, -, * ,/… Read More »

Given a positive integer n, find count of positive integers i such that 0 <= i <= n and n+i = n^i Examples : Input… Read More »

Previous posts on this topic : Minimax Algorithm in Game Theory, Evaluation Function in Game Theory, Tic-Tac-Toe AI – Finding optimal move, Alpha-Beta Pruning. Zobrist… Read More »

Given three variables, a, b and c, swap them without temporary variable. Example : Input : a = 10, b = 20 and c =… Read More »

Given a binary array of size n where n > 3. A true (or 1) value in the array means active and false (or 0)… Read More »

Given an array of n unique integers where each element in the array is in range [1, n]. The array has all distinct elements and… Read More »

Inplace Operators in Python | Set 1(iadd(), isub(), iconcat()…) More functions are discussed in this articles. 1. ixor() :- This function is used to assign… Read More »

Given a function rand50() that returns 0 or 1 with equal probability, write a function that returns 1 with 75% probability and 0 with 25%… Read More »

Given an array that contains odd number of occurrences for all numbers except for a few elements which are present even number of times. Find… Read More »

Given two integers a and b, how can we evaluate the sum a + b without using operators such as +, -, ++, –, …?… Read More »

It is recommended to refer Interesting facts about Bitwise Operators as a prerequisite. 1. How to set a bit in the number ‘num’ : If… Read More »

Given two arrays which are duplicates of each other except one element, that is one element from one of the array is missing, we need… Read More »

Binary Numbers is default way to store numbers, but in many applications binary numbers are difficult to use and a variation of binary numbers is… Read More »