Skip to content

Tag Archives: setBitCount

Given a Binary Tree. The task is to print the number of set bits in each of the nodes in the Binary Tree.    Recommended:… Read More
Given two integers, the task is to find the hamming distance between two integers. Hamming Distance between two integers is the number of bits that… Read More
Given a non-negative number and two values and . The problem is to check whether or not N has an alternate pattern in its binary representation in the… Read More
Given a non-negative integer N. The task is to invert the bits of the number N and print the decimal equivalent of the number obtained… Read More
Given a number N, the task is to check whether the count of the set and unset bits in the given number are same. Examples:   Input:… Read More
  Write an efficient program to count the number of 1s in the binary representation of an integer. Examples :  Input : n = 6… Read More