Common Elements in Two Lists

Asked at BlackRock · Coding Questions · Difficulty: Easy

Given two sequences containing numbers and letters, find the common elements and return them. For example, Line 1: `q w e r t 7 d`, Line 2: `7 f 6 a t 8 b` returns `7 t`.

Loading the problem…