#3270

Find the Key of the Numbers

newbie · 230 · lc easy +17 · 76.5% accepted · 105 likes · top 88%

Description

You are given three positive integers num1, num2, and num3. Pad each to 4 digits. For each digit position, take the minimum of the three digits to form the key. Return the key as an integer without leading zeros.

Code

1
2
3