DEV Community

loading...

Discussion on: Daily Coding Puzzles - Nov 4th - Nov 9th

Collapse
dschep profile image
Daniel Schep

Or with sets!

def array_diff(a, b):
    return list(set(a) - set(b))