哪段代码,你读完久久不能释怀?

2022-03-12 17:40:59 +08:00
 baobao1270

我觉得是这个 https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issues/123

相关问题:

5503 次点击
所在节点    程序员
27 条回复
cco
2022-03-14 17:11:58 +08:00
有个排序算法的代码,sleep(number),虽然实现了排序的功能,但是,,非常优雅。
Rever1e
2022-03-14 23:39:55 +08:00
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
//1/sqrt(x)
ryujavascript
2022-03-14 23:58:21 +08:00
果然没让我失望,我喜欢递归
c1273082756
2022-03-15 10:36:01 +08:00
if(!!false) {
console.log('操作完成');
}
huajieyu
2022-03-15 10:41:08 +08:00
惊现知乎
acmore
2022-03-15 11:29:01 +08:00
Elixir 解八皇后问题

queens(0) -> [[]];
queens(N) -> [[Row | Columns] || Columns <- queens(N - 1), Row <- lists:seq(1, 8) -- Columns, safe(Row, Columns, 1)].

safe(_Row, [], _N) -> true;
safe(Row, [Column | Columns], N) -> (Row /= Column + N) andalso (Row /= Column - N) andalso safe(Row, Columns, N + 1).
356693212
2022-03-15 15:41:56 +08:00
这个空格给我看傻了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/839898

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX