Created
May 13, 2020 13:19
-
-
Save meet100ni/99d8f8b39d8358ff67e38033adda262a to your computer and use it in GitHub Desktop.
Check Subset HackerRank Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
for _ in range(int(input())): | |
a,A=int(input()),set(map(int,input().split())) | |
b,B=int(input()),set(map(int,input().split())) | |
if B==B.union(A): | |
print(True) | |
else: | |
print(False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment