Problem Description

For each testcase you get n and array of size n with numbers 1..n, but one number is missing and one is repeated. Output missing and duplicate.

Input Format

First integer t. For each: n then n integers.

Output Format

t lines: missing duplicate.

Sample Test Case

Input:
1 5 1 2 2 4 5
Output:
3 2

Constraints

Sum of n over all testcases

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next