You are viewing a single comment's thread. Return to all comments →
Python solution:
from itertools import permutations pIter = permutations(n) if len(n)<3 else permutations(n,3) for k in pIter: if int(''.join(k)) & 7 == 0: return("YES") return("NO")
Seems like cookies are disabled on this browser, please enable them to open this website
Manasa loves Maths
You are viewing a single comment's thread. Return to all comments →
Python solution: