Skip to content

Instantly share code, notes, and snippets.

@amulyakashyap09
Created January 2, 2018 04:44
Show Gist options
  • Save amulyakashyap09/d8d6788770645a46ca5175392584f54e to your computer and use it in GitHub Desktop.
Save amulyakashyap09/d8d6788770645a46ca5175392584f54e to your computer and use it in GitHub Desktop.
Subset | Hackerrank
for i in range(int(input())): #More than 4 lines will result in 0 score. Blank lines won't be counted.
a = int(input()); A = set(input().split())
b = int(input()); B = set(input().split())
print(A.issubset(B))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment