Skip to content

Instantly share code, notes, and snippets.

@meet100ni
Created May 13, 2020 13:19
Show Gist options
  • Save meet100ni/99d8f8b39d8358ff67e38033adda262a to your computer and use it in GitHub Desktop.
Save meet100ni/99d8f8b39d8358ff67e38033adda262a to your computer and use it in GitHub Desktop.
Check Subset HackerRank Solution
# 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