Skip to content

Category Archives: Bit Magic

Given a binary array arr[] and an integer K, the task is to count the maximum number of 0’s that can be flipped to 1’s… 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 maximum set of numbers from the first N natural numbers whose Bitwise AND is… Read More
Given two binary matrices A[] and B[] of dimension N * M and a positive integer K, the task is to find the minimum number… 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 a binary matrix mat[][] of dimensions M*N, the task is to check whether there exist T continuous blocks of 0s or not and at… Read More
Given two integers A and B, the task is to find the minimum possible size of the array whose MEX of the array is A… Read More
Given a string S of N characters, the task is to calculate the total number of non-empty substrings such that at most one character occurs… Read More
Given a binary string S of size N and an array arr[] of M integers, the task is to find the final string after flipping… Read More
Given a string S of N characters consisting of ‘?’, ‘0‘, and ‘1‘ and two integers a and b, the task is to find a… Read More
Given two 2D binary arrays, a[][] and b[][] both of size M*N, the task is to pair each row in the array a[][] with any… Read More
Given a positive integer K, the task is to minimize the positive product of the first (2K – 1) Natural Numbers by swapping the bits… 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 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 a binary string S of size N, the task is to check if the count of 1s can be made greater than the count… Read More

Start Your Coding Journey Now!