Given an array of size n and a number k, we need to print first k natural numbers that are not there in given array.
First line consists of T test case. First line of every test case consists of N and K. Second line consists of elements of array.
Single line output, print the K missing numbers.
1 4 3
-5 -6 1
2 5 6
2 3 4
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.