intersection of 2 arrays
has anyone done this algo from Explore - LeetCode ?
I don't quite understand the requirement. If I return duplicates is wrong , if I return single instance of the intersection elements, is wrong. I don't get it.
first image I return [2,2]
second image I return just [2]
3
4 comments
Mioara Cenusa
7
intersection of 2 arrays
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
Powered by