Problem 2605 · Easy

Form Smallest Number From Two Digit Arrays

Put each list’s digits in a hash set; a shared digit is the answer, and otherwise the two smallest digits form the smallest two-digit number.

Open the interactive visualisation