You are viewing a single comment's thread. Return to all comments →
can be done by checking on subset length:
n = int(input()) for i in range(0, n): n_a, a = int(input()), set(input().split()) n_b, b = int(input()), set(input().split()) subset = a - b print(len(subset) == 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 →
can be done by checking on subset length: