TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Algo Deck: an open-source collection of 200 cards on algorithms

214 点作者 teivah超过 5 年前

4 条评论

contingencies超过 5 年前
Unpopular opinion: Programmer time is more valuable than machine time. Maintenance is 90% of the life of a system. Therefore, just know the concepts for each .md file, be able to describe their general properties, and be able to work with existing implementations in the real world. Formal complexity is rarely useful, because on cheap hardware very inefficient code scales very well. Certainly, don&#x27;t re-implement basics like sort, graph traversal or queuing algorithms unless there is a pressing need.<p>For example, it is infinitely more useful (faster implementations, more proven code, less maintenance overhead, free upgrades) to be familiar with <i>iconv</i> and the data available in the Unicode database than to memorize random facts about encodings.
评论 #22216176 未加载
评论 #22215025 未加载
评论 #22216070 未加载
cycrutchfield超过 5 年前
As somebody that interviews a lot of candidates, I almost never ask rote memorization questions like these. I have to wonder, are there people who do? What sort of signal do you hope to gather by doing so?
评论 #22213114 未加载
评论 #22213099 未加载
评论 #22213115 未加载
gwilliams超过 5 年前
<i>boolean checkExactlyOneBitSet(int num) {</i><p><i>return (num &amp; (num - 1)) == 0;</i><p><i>}</i><p>That looks like it&#x27;ll fail when num == 0. I think it should be:<p><pre><code> return num &amp;&amp; ((num &amp; (num - 1)) == 0);</code></pre>
评论 #22215300 未加载
评论 #22216240 未加载
melling超过 5 年前
I followed the link for Anki on the iPhone and it’s $25. No other options?
评论 #22213057 未加载
评论 #22213045 未加载
评论 #22213008 未加载
评论 #22213017 未加载
评论 #22215103 未加载