3 ms·
Assuming whatever language I'm using has an honest implementation of a set data structure and that these sets of numbers are true sets, and thus, contain no dup
by scriptkiddy 9y ago
Assuming whatever language I'm using has an honest implementation of a set data structure and that these sets of numbers are true sets, and thus, contain no duplicate values; I would perform an intersection.
With Python(my bread and butter), I would simply use the built in intersection set class method: https://docs.python.org/3/library/stdtypes.html?highlight=set#set.intersection https://docs.python.org/3/library/stdtypes.html?highlight=se...