题解 | #数组扁平化#
数组扁平化
https://www.nowcoder.com/practice/5d7e0cf4634344c98e6ae4eaa2336bed
let ans=(arr+'').split(',') //把数组转为字符串数组[ '1', '2', '3', '4', '5' ]
return ans.map(Number) //字符串数组转为数字数组
数组扁平化
https://www.nowcoder.com/practice/5d7e0cf4634344c98e6ae4eaa2336bed
let ans=(arr+'').split(',') //把数组转为字符串数组[ '1', '2', '3', '4', '5' ]
return ans.map(Number) //字符串数组转为数字数组
相关推荐
小浪_Coding:1. 个人技能排版太乱, 写的技术栈太浅了, 跟测试,自动化相关的太少; 2. 项目开发类的太简单没有亮点, 算法类的项目建议只放一个,最好有自动化,CI/CD, pipline的项目, 需要更换; 3.整体排版需要优化, SOOB打招呼都需要注意等.
查看8道真题和解析