Chef and Missing Numbers SOLUTIONS CHEF1002

Chef and Missing Numbers SOLUTION

Gourmet specialist had two arrangements of fixings that were changes of each other. He was extremely glad. Sadly, while going from work , a few numbers were missed out of the main rundown. Would you be able to locate the missing numbers? 



On the off chance that a number happens on numerous occasions in the rundowns, you should guarantee that the recurrence of that number in the two records is the equivalent. On the off chance that that isn’t the situation, at that point it is additionally a missing number. 

You need to print all the missing numbers in rising request. 



First line will contain T, number of testcases. At that point the testcases follow. 

Each testcase contains of a solitary line of information, two numbers M,R. 

arr is unique cluster and brr is exhibit with missing numbers. 



Yield the missing numbers in rising request. 





1≤brr[i] ≤104 


Test Input: 


203 204 205 206 207 208 203 204 205 206 


203 204 205 206 207 205 208 203 206 205 206 20

Leave a Comment