迷渡

Results 171 comments of 迷渡

I can help with translation to Chinese

题目不是**无符号数**吗?表示范围:0 --- 2^32 - 1,使用位运算肯定丢失精度了。

这个有意思啊 ```javascript const resolveTwoSum = (nums, target) => { for (let i = 0; i < nums.length - 1; i++) { for (let j = i; j < nums.length; j++)...

@youngwind 这样? ```diff const resolveTwoSum = (nums, target) => { for (let i = 0; i < nums.length - 1; i++) { - for (let j = i; j <...

@barretlee ![image](https://user-images.githubusercontent.com/359395/27578176-e1f229ae-5b55-11e7-9c64-d0f02f4ba640.png) https://jsperf.com/daily-algorithms-two-sum 我的 test case 太特殊,我再继续补充。理论上 HashMap 会快。

修改为了 100000 条随机数据: ![image](https://user-images.githubusercontent.com/359395/27578472-c8af2b4e-5b56-11e7-9880-c5e34434c898.png) @Robin-front 的算法很赞 👍

@Imfan 下面有连接 http://jsperf.com

搭车,安利一篇我的知乎回答:[JavaScript 函数式编程存在性能问题么?](https://www.zhihu.com/question/54637225/answer/140362071)

@rccoder 你之前都是怎么使用的啊 😂