Showing 3 of 10 questions
Find the common elements present in two given arrays. Return an array containing these intersecting elements, ensuring each element appears only once.
#1. Intersection of Two Arrays
Find the common elements between two integer arrays. Return a new array containing each common number as many times as it appears in both input arrays.
#2. Intersection of Two Arrays II
Imagine a paint bucket tool. Given a starting pixel and a color, change all connected pixels of the same original color to the new color.
#3. Flood Fill
Page 1 of 1 · 10 total