Given an array that may contain nested arrays, return a flattened array. Input and out put are illustrated as follows. 将含有嵌套的数组转换成扁平化输出。*号部分为需要写出的代码。
;
代码
;
;
input;
out;
Given an array that may contain nested arrays, return a flattened array. Input and out put are illustrated as follows. 将含有嵌套的数组转换成扁平化输出。*号部分为需要写出的代码。
;
;
;
input;
out;