numbers. Write each number out digit by digit from left to right and list all those digits in a row: first the digits of the first number, then those of the second, and so on.
Return the resulting array of digits. For example, the number 3051 contributes [3, 0, 5, 1].numbers=[402, 7, 51] → [4, 0, 2, 7, 5, 1]
402 splits into 4, 0, 2, then comes 7, then 5 and 1, all in the original order.
numbers=[100200] → [1, 0, 0, 2, 0, 0]
Zeros inside or at the end of a number are digits too and stay in the answer.
numbers=[8, 3, 9] → [8, 3, 9]
One-digit numbers go into the answer unchanged.
numbers.length ≤ 1000numbers[i] ≤ 10⁹numbers=[402, 7, 51]
[4, 0, 2, 7, 5, 1]
Run checks the first 3 tests in your browser. Submit checks all 104 tests on the server, hidden ones included.