Home | Projects | Notes > Problem Solving > LC - E - 2595. Number of Even and Odd Bits (bit manipulation)

LC - E - 2595. Number of Even and Odd Bits (bit manipulation)

 

Solutions in C

Solution 1

This solution uses bitwise operations.

Complexity Analysis:

Solution:

Solution 2

This solution uses bitwise operations. (e.g., Bit masking)

Complexity Analysis:

Solution: