Problem Description

Task: array has n-1 numbers from 1..n without duplicates. Return the missing number.

Input Format

Java method

Output Format

Return value

Constraints

Use long for expected sum.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next