You are given a list of integers nums of size n-1. Each number in nums is unique and lies from 1 to n.
Find the number that is missing from the list.
nums: [3, 1, 4]
Answer: 2
nums: [1, 2]
Answer: 3
The first line contains an integer âTâ denoting the number of test cases.
For each test case, the input has two lines:
For each test case, the output has one line containing the missing number.
2
4
3 1 4
3
1 2
2
3
1 <= T <= 100
2 <= n <= 10000