John Venn (Analyst Program :)

Asked in Blackrock interviews, this coding interview problem takes two lines of space-delimited alphanumeric values as sets and requires matching and displaying values present in both. Output the common elements sorted alphanumerically, or NULL if none. A set theory interview question.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: