Intersection of two arrays in Python ( Lambda expression and filter function )
Given two arrays, find their intersection.
Input: arr1 = [1, 3, 4, 5, 7] arr2 = [2, 3, 5, 6] Output: Intersection : [3, 5]
Intersection : [3, 5]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course