This code is useful for performing basic operations like clearing ith bit, setting ith bit, and finding ith bit using BitMasking Techniques.
This code is designed to perform all the basic operations in bits. As the bits are a very optimized way for reducing complexity and increasing performance.
By using BitMasking.java you can clear an ith bit, find ith bit, set ith bit, or perform all these tasks simultaneously.It internally uses bitwise operators to shift bits as per requirements.
This code is generally useful in solving many DP problems as we are directly dealing with bits which reduces process time.
Submitted by Jaswinder Singh (Jaswinder)
Download packets of source code on Coders Packet