Problem Description

Task: you can add 1 or 2 each move. Return minimum moves to reach exactly n.

Input Format

Java method

Output Format

Return value

Constraints

n >= 0.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next