Teenu has a sequence of N numbers. He like a sequence better if the sequence contains his favorite sequence as a substring. Given the sequence and his favorite sequence(F) check whether the favorite sequence is contained in the sequence Input The first line will contain the number of test cases and are followed by the cases. Each test case consists of four lines: The length of the sequence, the sequence N,the length of F and the sequence F Output Print ""Yes"" if the sequence contains the favourite sequence int it otherwise print ""No"" Constraints 1<=T<=10 1 1
Answers
Answered by
0
Answer:
shgsfghsfghsgg sgh
Explanation:
sghsfhsghshfghh sgfghq
Similar questions
English,
5 months ago
Social Sciences,
5 months ago
India Languages,
5 months ago
English,
10 months ago