题解 | #二进制转换#
乘法
http://www.nowcoder.com/practice/6429776e4630435cbc3eeb36bdf41f83
复杂还是简单? function multiply(a, b) { var mul=[1,1] var ab=[a,b].map((num,index)=>(''+num).replace(/\.(\d*)/,(_,$)=>{ mul[index]=Math.pow(10,$.length) return $ })) return ab.reduce((a,b)=>a*b)/mul.reduce((a,b)=>a*b) }