You are viewing a single comment's thread. Return to all comments →
Solution without using .issubset()
case = int(input()) for i in range(case): numA = int(input()) setA = set(list(map(int, input().split()))) numB = int(input()) setB = set(list(map(int, input().split()))) print(len(setA - setB)==0)
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 →
Solution without using .issubset()