Given two integers N and K, generate a sequence of size N+1 where the ith element is (i-1)⊕K, the task is to find the MEX… Read More
The post MEX of generated sequence of N+1 integers where ith integer is XOR of (i-1) and K appeared first on GeeksforGeeks.