You are viewing a single comment's thread. Return to all comments →
T= int(input()) for inputs in range(T): no_of_elements_in_A = int(input()) A = set(input().split()) no_of_elements_in_B = int(input()) B = set(input().split()) if len(A.difference(B)) == 0: # or, A.difference(B)==set() print("True") else: print("False")
Seems like cookies are disabled on this browser, please enable them to open this website
Check Subset
You are viewing a single comment's thread. Return to all comments →