[Solved] Toggle The Middle Contest Problem
Toggle The Middle: You are given a number N. You need to toggle the middle bit of N in binary form and print the result in decimal form. If number of bits in binary form of N are odd then…
Empowering coders, one solution at a time
Empowering coders, one solution at a time
Toggle The Middle: You are given a number N. You need to toggle the middle bit of N in binary form and print the result in decimal form. If number of bits in binary form of N are odd then…
You are given an array of integers. Consider absolute difference between all the pairs of the the elements. You need to find Kthsmallest absolute difference.If the size of the array is N then value of K will be less than N…
You are given an array of integers. Find the sum of first K smallest numbers. K Sum Contest Problem Input : First line of input contains number of testcases T. The 1st line of each testcase contains a two integers N denoting the number of elements…
XOR Pair: Given an array of positive element having size N and an integer C. Check if there exists a pair (A,B) such that A xor B = C. Input : First line of input contains number of testcases T. The 1st line…