Problem statement : Given an integer n, return an array ans whose length is n+1 such that for each i (0
Continue readingCategory: Bit Manipulation
Reverse Bits
Problem Statement: The problem is to reverse the bits of n and print the number obtained after reversing the bits.
Continue readingBitwise Operators in Java
In this article, we will learn about all Bitwise Operators in Java. What are Operators in Java? In programming languages,
Continue readingCheck if Kth bit is set or not
Problem Statement: Check if kth bit is set or not. Examples: Example 1: Input: n=5 ,k=0 Output: Yes Explanation: The
Continue reading