Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Is there any reason to use set().intersection() instead of & ? solution in Clear category for Common Words by dan_rue
def checkio(line1: str, line2: str) -> str:
return ','.join(sorted(set(line1.split(",")) & set(line2.split(","))))
Nov. 19, 2022
Comments: