You are given three positive integers num1, num2, and num3.
The key of num1, num2, and num3 is defined as a four-digit number such that:
Return the key of the three numbers without leading zeros (if any).
Examples
Example 1
Input: num1 = 1, num2 = 10, num3 = 1000
Output: 0
Explanation:
On padding, num1 becomes "0001" , num2 becomes "0010" , and num3 remains "1000" .
Hence, the key is "0000" , i.e. 0.
You are given three positive integers num1, num2, and num3.
The key of num1, num2, and num3 is defined as a four-digit number such that:
Return the key of the three numbers without leading zeros (if any).
Examples
Example 1
Input: num1 = 1, num2 = 10, num3 = 1000
Output: 0
Explanation:
On padding, num1 becomes "0001" , num2 becomes "0010" , and num3 remains "1000" .
Hence, the key is "0000" , i.e. 0.