Compute parity bit

Java Hard 5 views
Back to Questions

Problem Description

Task: return 0 if number of set bits is even, 1 if odd.

Input Format

Java method

Output Format

Return value

Constraints

Use XOR folding.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev