An array containing positive elements is given. ‘A’ and ‘B’ are two numbers defining a range. Write a function to check if the array contains all elements in the given range.
The first line of input contains an integer T denoting the number of test cases. Each test case contains space separated integers n, A and B which denotes the number of elements in the array a and the range [A, B]. Next line contains space separated n elements in the array a.
Print "Yes" if all the elements in the range are present else print "No".
1<= A < B<=1000
7 2 5
1 4 5 2 7 8 3
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.