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 实现 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)
顺序信息放到内存中,在内存中更新顺序信息,定期持久化到数据库中。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4757 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 02:24 · PVG 10:24 · LAX 18:24 · JFK 21:24
♥ Do have faith in what you're doing.