Skip to content

Tag Archives: setBitCount

Given an array arr[] of N integers, the task is to replace each element of Array with their rank according to Rightmost-Set Bit (RSB) in… Read More
Given an array arr[] containing N integers and an array queries[] containing Q queries in the form of {L, R}, the task is to count… Read More
Given an array arr, the task is to count the total number of set bits in all numbers of that array arr. Example: Input: arr[]… Read More
Given an array arr[] of size N, the task is to find the sum of all XNOR values of all possible unordered pairs from the… Read More
Given two integers N and K, the task is to find the count of binary strings of at most N length that can be formed… Read More
Given a positive integer N, the task is to find the minimum number of addition operations required to convert the number 0 to N such… Read More
Given an array arr[] consisting of N positive integers, the task is to find the largest size of the subset of the array arr[] with… Read More
Given a positive integer N and an array arr[] consisting of K integers and consider a binary string(say S) having N set bits, the task… Read More
Given a positive integer N, the task is to find the pair of integers (X, Y) such that the Bitwise XOR of X and Y… Read More
Given 3 integers A, B, C, the task is to find the maximum XOR value of three number selected one from each range [0, A],… Read More
Given a positive integer N, the task is to count the number of N-digit numbers such that the count of distinct odd and distinct even… Read More
Given a binary tree, the task is to compress all the nodes on the same vertical line into a single node such that if the… Read More
Given an array arr[] of N pairs, where each array element denotes a query of the form {L, R}, the task is to find the… Read More
Given a Binary Tree consisting of N nodes, the task is to first compress the tree diagonally to get a list of integers and then,… Read More
Given an integer N, the task is to find the number of steps required to reduce the given number N to 1 by performing the… Read More

Start Your Coding Journey Now!