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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What's Your Favorite Algorithm?

4 点作者 highwayman47超过 2 年前

4 条评论

Rounin超过 2 年前
Binary search and similar forms of successive approximation. It can be used to solve such a wide array of problems given just a minimal amount of information.
评论 #33558672 未加载
tothrowaway超过 2 年前
The Hungarian algorithm. It solves the assignment problem (the optimal way to assign workers to tasks given their completion time of each task). The assignment problem looks hopelessly O(n!), but by some magic, the algorithm can solve it in polynomial time.
john_the_writer超过 2 年前
I have loved this one for years<p>while (<i>s++ = </i>t++);
graderjs超过 2 年前
I’m partial to LZ77 so simple and elegant and skiplist: simple but powerful