迷渡
迷渡
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  https://jsperf.com/daily-algorithms-two-sum 我的 test case 太特殊,我再继续补充。理论上 HashMap 会快。
修改为了 100000 条随机数据:  @Robin-front 的算法很赞 👍
@Imfan 下面有连接 http://jsperf.com
等 1.0 发布后开始翻译
搭车,安利一篇我的知乎回答:[JavaScript 函数式编程存在性能问题么?](https://www.zhihu.com/question/54637225/answer/140362071)
@rccoder 你之前都是怎么使用的啊 😂