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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Know algorithms, or know how to implement them?

2 点作者 baalimago将近 3 年前
I&#x27;m playing around doing leetcode challenges for fun where I stumbled upon one which required quicksort. It struck me then that I&#x27;ve completely forgotten how to implement it (which I once did a couple of years ago at uni), I had to go to wikipedia and write it from pseudo code. All in all it took me about 30 min to solve.<p>This got me thinking; is this even an issue? Is there value in knowing algorithms like quicksort and Djikstra&#x27;s by heart, as opposed to being confident that you&#x27;re able to implement them given information on how to do it?

1 comment

bradwood将近 3 年前
What&#x27;s more important is knowing how to analyse&#x2F;derive the big-O of each of the various algorithms in space and time, IMHO.
评论 #31691096 未加载