tidyoux's recent timeline updates
tidyoux

tidyoux

V2EX member #204198, joined on 2016-12-03 14:43:06 +08:00
tidyoux's recent replies
人类目前使用的编程语言和工具,都是为方便人类使用而设计的,而对于 AI 来说可能有更好的选择。
人类编写不同的程序,用以解决不同的问题,而 AI 通过编写不同种类的 AI 来解决问题。
人类编写的程序都是静态的,而 AI 通过编写新的 AI 实现 AI 的进化。
Jul 4, 2019
Replied to a topic by Acceml LeetCode [Leetcode] 137.只出现一次的数字 II
那不叫 32 维数组。

很容易搜到符合题目要求的解:

int singleNumber(int A[], int n) {
int ones = 0, twos = 0, xthrees = 0;
for(int i = 0; i < n; ++i) {
twos |= (ones & A[i]);
ones ^= A[i];
xthrees = ~(ones & twos);
ones &= xthrees;
twos &= xthrees;
}

return ones;
}

[引用]( https://www.cnblogs.com/daijinqiao/p/3352893.html)
顺序信息放到内存中,在内存中更新顺序信息,定期持久化到数据库中。
Dec 20, 2018
Replied to a topic by supermao 程序员 Chrome 浏览器移动 Tab 快捷键
如果你安装了 vimium,可以用 << 和 >> 左右移动 Tab
鼠标和打字速度都很难成为一个程序员的效率瓶颈。
逻辑上是 8 个,实际上是 4 个。
http://blog.csdn.net/zolalad/article/details/28393209
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   965 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 21:53 · PVG 05:53 · LAX 14:53 · JFK 17:53
♥ Do have faith in what you're doing.