How to create Interleaving Arrays in Python
The challenge
Create a function, that accepts an arbitrary number of arrays and returns a single array generated by alternately appending elements from the passed-in arguments. If one of them is shorter than the others, the result should be padded with empty elements.
Examples:
The solution in Python code
Option 1:
Option 2:
Option 3:
|
|