DEV Community

Discussion on: A common coding interview question

Collapse
 
orionaegis profile image
Orion Aegis
def sortedIntersection([a,b]):
  return any([map(set,a.split(', ')).intersection(b.split(', '))])

Would be the easiest to implement (I'm on my phone so I can't check it, also, python)