# Tag Archives: binary-representation

Given a binary array a[] of size N of 1’s and 0’s. The task is to remove an element if a[i-1]+a[i]+a[i+1] is divisible by 3.… 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 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 two binary arrays, A[] and B[] of size N respectively, the task is to find the number of elements in array A[] that will… 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
Given two integers A and B, the task is to count possible values of X that satisfies the condition A | X = B. Note:… Read More
Given a Binary string, the task is to find the largest Prime Number possible by the decimal representation of a subsequence of the given binary… Read More
Given an array arr[] consisting of N positive integers, the task is to rearrange the array such that the reversed binary representation of all the… Read More
Given a positive 32-bit integer N, the task is to find the maximum between the value of N and the number obtained by decimal representation… Read More
Given an array arr[] consisting of N floating-point numbers, the task is to print the decimal representation of the binary array constructed from the absolute… Read More
Given a positive integer N representing the number of disks in the Tower of Hanoi, the task is to solve the Tower of Hanoi puzzle… Read More
Given an array arr[] consisting of N positive integers, the task is to find the maximum absolute difference between the sum of the array elements… Read More
Given a positive integer N, the task is to calculate the sum of all decimals which can be expressed as binary representations of first N… Read More
Given an array arr[] consisting of N integers, the task is to modify the array by replacing each array element with the number obtained by… Read More
We have already studied that the computer works with 0 and 1 these are a part of BIT a bit has two types of conditions… Read More