# Tag Archives: Bit Algorithms

Bit stands for binary digit. A bit is the basic unit of information and can only have one of two possible values that is 0â€¦ Read More
Given an array arr[] of odd length N containing positive integers. The task is to find a positive integer X such that, adding X toâ€¦ Read More
Given an array arr[] consisting of N positive integers. The task is to count the number of different non-empty subsets of arr[] having maximum bitwiseâ€¦ Read More
Given N program codes and their respective debugging times in an array codeTime and an integer WorkingSessionTime, the ith program takes codeTime[i] hours to finish.â€¦ Read More
Given two integers L and R. The task is to find the count of all numbers in the range [L, R] whose Least Significant Bitâ€¦ 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 an unweighted and undirected graph consisting of N nodes and two integers a and b. The edge between any two nodes exists only ifâ€¦ Read More
Given three numbers N, A, and X, the task is to construct the lexicographically smallest binary array of size N, containing A 0s and havingâ€¦ Read More
Bit Manipulation is a technique used in a variety of problems to get the solution in an optimized way. This technique is very effective fromâ€¦ Read More
Given an array arr[] consisting of N and an integer K, the task is to print the elements of arr[] whose rightmost set bit isâ€¦ Read More
Given an integer N, the task is to print all the subsets of the set formed by the set bits present in the binary representationâ€¦ Read More
Given two integers N and K, the task is to find whether it is possible to represent N as the sum of exactly K powersâ€¦ Read More
Given an array arr[] consisting of non-negative integers, the task for each array element arr[i] is to print the sum of Bitwise OR of allâ€¦ Read More
Given two integers X and S, the task is to construct a sequence of distinct integers from the range [1, X] such that the sumâ€¦ Read More
Given a positive integer N, the task is to perform the following sequence of operations on the binary representation of N in C. Finding aâ€¦ Read More