Problem Description

Task: set k-th bit (0-indexed) in x and return result.

Input Format

Java method

Output Format

Return value

Constraints

k between 0..30.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next