Given an array arr[] consisting of N positive integers, the task is to modify every array element by reversing them binary representation and count the… Read More

# Tag Archives: binary-representation

Given two integers N and S, the task is to find a circular permutation of numbers from the range [0, 2(N – 1)], starting with… Read More

Given an integer N, the task is to find the number of trailing zeroes in the binary representation of the given number. Examples: Input: N… Read More

Given a positive integer N, the task is to determine the maximum possible integer that can be formed by performing the following operations on the… Read More

Given a number N, the task is to check if the binary representation of the number N has only “01” and “10” as a substring… Read More

Given an integer N, the task is to write a Python program to represent the bytes of this number as an array. A byte is… Read More

Given a binary array arr[] of size N, the task is to find the maximum count of 0s that can be converted into 1s such… Read More

Given two integers L and R, the task is to find the count of numbers in the range [L, R] whose first and last digit… Read More

Given an integer N, the task is to find the decimal value of the binary string formed by concatenating the binary representations of all numbers… Read More

Given an integer N, the task is to find the minimum number of coins of the form 2i required to make a change for N… Read More

Given two numbers A and B, the task is to count the number of set bits in A and B and flip the bits of… Read More

Given two positive integers N and K, the task is to count the numbers from the range [1, N] whose Kth bit from the right,… Read More

Given a numeric string S representing a positive decimal integer, the task is to find the minimum number of positive Deci-Binary numbers required to obtain… Read More

Given a binary matrix, mat[][] of dimensions N * M, the task is to maximize the count of rows consisting only of equal elements by… Read More