Tag Archives: binary-representation

Given a integer ‘x’, find the number of values of ‘a’ satisfying the following conditions:  a XOR x > x 0 < a < xâ€¦ Read More
Give an integer n. We can flip exactly one bit. Write code to find the length of the longest sequence of 1 s you couldâ€¦ Read More
Given a number n, the task is to find the maximum 0’s between two immediate 1’s in binary representation of given n. Return -1 ifâ€¦ Read More
Given binary square matrix [n*n]. Find maximum integer value in a path from top left to bottom right. We compute integer value using bits ofâ€¦ Read More
Given a number N, The task is to find the length of the longest consecutive 1s series in its binary representation.Examples :  Input: N =â€¦ Read More
Binary Number is the default way to store numbers, but in many applications, binary numbers are difficult to use and a variety of binary numbersâ€¦ Read More
Given a Binary Number as a string, print its 1’s and 2’s complements.  1â€™s complement of a binary number is another binary number obtained byâ€¦ Read More
Given an integer ‘x’, write a C function that returns true if binary representation of x is palindrome else return false.For example a numbers withâ€¦ Read More
Given two bit sequences as strings, write a function to return the addition of the two sequences. Bit strings can be of different lengths also.â€¦ Read More