题解 | #求二次方#
求二次方
http://www.nowcoder.com/practice/b7a8647e33d84f5c88acdd7c81a85fdf
function square(arr) {
// 简洁即是优雅
return arr.map(x => x*x)
// 还可以这样↓(只不过牛客网的JS版本低,不支持这种语法)
// return arr.map(x => x**2)
}
求二次方
http://www.nowcoder.com/practice/b7a8647e33d84f5c88acdd7c81a85fdf
function square(arr) {
// 简洁即是优雅
return arr.map(x => x*x)
// 还可以这样↓(只不过牛客网的JS版本低,不支持这种语法)
// return arr.map(x => x**2)
}
相关推荐
查看3道真题和解析
白火同学:你可以把自我评价和教育背景互掉个顺序,学校算是HR比较看重的title之一了,除非特别差,否则没必要放最后面。
三个项目有点多,那第二个项目和第三个项目有重叠内容,那你可以把项目融合一下,扩展一下业务面。