Skip to content

Latest commit

 

History

History

intersections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

List Intersection

Given two lists of strings, find the intersection of the two lists.

Sample Input: $a1 = ['dog', 'cat', 'egg'] $a2 = ['cat', 'dog', 'chicken']

Output: $out = ['dog', 'cat']