Bit manipulation is the act of algorithmically manipulating bits or other pieces of data shorter than a word. Computer programming tasks that require bit manipulation include low-level device control, error detection and correction algorithms, data compression, encryption algorithms, and optimization.

Learn more..You are given an array of non-negative integers where each element occurs exactly twice except one which occurs once.
Find the element occurring once.
Examples:
Input 1:
[1, 1, 2, 2, 3]
Output 1 ...

Ali Ahmet Bingül

Published on Feb 13th, 2018

Published on Feb 13th, 2018

Given a binary string, we can flip all 1s and 0s . Calculate the minimum flips required to make all 1s in left and all 0s in right. There should be at least one 0 and one 1.
Examples:
"1011000" can ...

Berkan Teber

Published on Jan 16th, 2018

Published on Jan 16th, 2018

Given an integer array of n integers, find sum of bit differences in all pairs that can be formed from array elements. Bit difference of a pair (x, y) is count of different bits at same positions in ...

Berkan Teber

Published on Jan 15th, 2018

Published on Jan 15th, 2018

Problem
Given two binary strings, return their sum (also a binary string).
Example
For example,
a = "11"
b = "1"
Return "100" string.

Erkan Ercan

Published on Jan 14th, 2018

Published on Jan 14th, 2018