## Find the missing element in an array of integers represented in binary format

Given N strings which represents all integers from 0 to N in binary format except any one. The task is to find the missing number.… Read More »

Given N strings which represents all integers from 0 to N in binary format except any one. The task is to find the missing number.… Read More »

Given two numbers and . The task is to subtract from by using 2’s Complement method. Note: Negative numbers represented as 2’s Complement of Positive… Read More »

Given two 32-bit numbers, N and M, and two-bit positions, i and j. Write a method to insert M into N such that M starts… Read More »

Given an array of N integers and a number X. The task is to find the index of first element which is greater than or… Read More »

Given an array of N numbers, the task is to find the maximum sum that can be obtained by adding numbers with the same number… Read More »

Given an array of N integers. The task is to find the number of pairs (i, j) such that A[i] & A[j] is odd. Examples:… Read More »

Given two non-negative numbers a and b and two values l and r. The problem is to check whether all bits at corresponding positions in… Read More »

Given an array arr[0 . . . n-1]. The task is to perform the following operation: Find the maximum of elements from index l to… Read More »

Given an array of N integers and an integer M. You can change the sign(positive or negative) of any element in the array. The task… Read More »

Given a decimal number m, convert it into a binary string and apply n iterations, in each iteration 0 becomes “01” and 1 becomes “10”.… Read More »

Given two integers L and R. Determine the bitwise OR of all the integers in the range [L, R] (both inclusive). Examples: Input: L =… Read More »

Given L and R. The task is to find the number in whose binary representation all bits between the L-th and R-th index are set… Read More »

Given a number n, count number of integers smaller than or equal to n that have odd number of set bits. Examples: Input : 5… Read More »

What does the following C expression do? x = x & (x-1) (A) Sets all bits as 1 (B) Makes x equals to 0 (C)… Read More »

What does the following C expression do? x = (x<>1); (A) Multiplies an integer with 7 (B) Multiplies an integer with 3.5 (C) Multiplies an… Read More »