Given two positive integers X and K, the task is to find the K-th smallest positive integer Y, such that X + Y = X… Read More The post K-th smallest positive integer having sum with given number equal to bitwise OR with given number appeared first on GeeksforGeeks.