You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Repository contains Bit Manipulation techniques and programs in java.
Bit manipulation is the process of applying logical operations on a sequence of bits, the smallest form of data in a computer, to achieve a required result.
If you are a beginner and looking to improve your coding skills or an experienced developer interested in exploring different concepts, this collection has something for you.
Please to my Youtube Channel
Lectures
Video Link
Video PDF
Code
1) Introduction of Bit Manipulation
2) Addition and Subtraction of Binary Number
3) Convert Decimal to Binary in JAVA
4) Convert Binary to Decimal in JAVA
5) Bitwise Operator (AND, OR, XOR, NOT) Part 1
6) Bitwise Operator (Leftshift, Rightshift) Part 2
7) Properties of Bitwise Operator
8) Bitmasking (Set, Unset, Toggle, CheckBit)
9) Single Number
10) Count number of set Bit
11) Hamming Distance
12) XOR operation in an Array
13) Number of Even and Odd Bit
14) Power of Two
15) Power of four
16) Reverse bits
17) Missing Number
18) Number of Steps to reduce a number to zero
19) Prime number of set bit in binary representation