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.
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.