50 views
22 Dec 2025
Determine whether a given integer is even or odd using bitwise operators instead of arithmetic operators....
25 views
22 Dec 2025
Given an array where every element appears twice except one find that unique element using XOR....
21 views
22 Dec 2025
Count the number of set bits (1s) in the binary representation of a number....
18 views
22 Dec 2025
Check whether a given number is a power of two using bitwise operations....
19 views
22 Dec 2025
Swap two numbers without using a temporary variable using XOR operation....
22 views
22 Dec 2025
Find the position of the rightmost set bit in a number....
21 views
22 Dec 2025
Turn off the rightmost set bit of a given number....
19 views
22 Dec 2025
Set the ith bit of a given number using bitwise operators....
21 views
22 Dec 2025
Clear the ith bit of a given number....
23 views
22 Dec 2025
Toggle the ith bit of a number using XOR....
21 views
22 Dec 2025
Check whether the ith bit of a number is set or not....
16 views
22 Dec 2025
Multiply a number by two using left shift operation....
17 views
22 Dec 2025
Divide a number by two using right shift operation....
23 views
22 Dec 2025
Find the missing number in an array containing numbers from 1 to N using XOR....
16 views
22 Dec 2025
Find the element that appears once when others appear three times....
15 views
22 Dec 2025
Add two integers without using the + operator....
17 views
22 Dec 2025
Reverse the bits of a given 32-bit unsigned integer....
15 views
22 Dec 2025
Check whether two integers have opposite signs using bit manipulation....
18 views
22 Dec 2025
Compute bitwise AND of all numbers in a given range [L, R]....
20 views
22 Dec 2025
Generate the sequence of Gray codes for n bits using bit manipulation....