TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby baalimagoalmost 3 years ago
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

bradwoodalmost 3 years ago
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 未加载