We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Check Subset
- Discussions
Check Subset
Check Subset
Sort by
recency
|
965 Discussions
|
Please Login in order to post a comment
T = int(input()) for i in range(T): n1 = int(input()) A = set(map(int,input().split())) n2 = int(input()) B = set(map(int,input().split())) if A == A.intersection(B): print("True") else: print("False")
T = int(input())
for i in range(T): setA_cnt = int(input()) A = set(map(int,input().split())) setB_cnt = int(input()) B = set(map(int,input().split())) z = A.issubset(B) print(z)
def setss(): test_case = int(input())
setss()
num_test_cases = int(input())
for _ in range(num_test_cases):