You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
_, a, b = input(), list(map(int, input().split())), list(map(int, input().split())) print(sum([all(i % x == 0 for x in a) and all(x % i == 0 for x in b) for i in range(max(a), min(b)+1)]))
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)