Open Seasons123 opened 4 years ago
思路: 1.使用toString( ) ,数据变为扁平的字符串 2.使用split( ),字符串转为数组
面试官连环追问:数组拍平(扁平化) flat 方法实现
思路: 1.使用toString( ) ,数据变为扁平的字符串
2.使用split( ),字符串转为数组
![image](https://user-images.githubusercontent.com/19281922/71233756-79ad6d80-2331-11ea-9c46-276116128457.png)