# Tag Archives: binary-representation

Given a binary string S of length N, the task is to find the minimum number of bit flips required to convert the given string… Read More
Given a binary valued undirected graph with V vertices and E edges, the task is to find the octal equivalents of all the connected components… Read More
Given a binary matrix mat[][] consisting of 1s and 0s of dimension M * N, the task is to find the number of operations to… Read More
Given an integer N, the task is to count every number i from 1 to N (both inclusive) such that i is a binary representation… Read More
Given a binary number N, and a range represented by L, and R, the task is to convert the given binary number in all the… Read More
Given a binary array and an integer K, check if every pair of 1 in the array is at least K length apart from each… Read More
Given a Matrix of size N*N filled with 1‘s and 0‘s, the task is to find the maximum distance from a 0-cell to its nearest… Read More
Given any Real Number greater than or equal to zero that is passed in as float, print binary representation of entered real number. Examples: Input:… Read More
Given a binary array of size N and a range in [l, r], the task is to find the maximum distance between two 1s in… Read More
Given a binary array arr[], the task is to find the number of operations required to remove all 1s from the adjacent left of 0s.… Read More
Given a positive integer N, the task is to count all possible distinct binary strings of length N such that there are no consecutive 1’s.… Read More
Given a gold bar of length N with N equal markings, the task is to find the minimum number of cuts required to pay the… Read More
Given an integer N. The task is to reduce the given number N to 1 in minimum number of given operations. You can perform any… Read More
Given the size of a binary array consisting of 0’s only as n and an integer m which is the number of flips allowed from… Read More
Given a binary matrix. In a single operation, you are allowed to choose two adjacent elements and invert their parity. The operation can be performed… Read More