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.

Life, the Universe and Technical Interviews

14 pointsby sahlhoffalmost 11 years ago

2 comments

tempestnalmost 11 years ago
I tend to ask what I think is a rather simpler question in most interviews: find the sum of the two largest (most positive) numbers in an array of arbitrary integers. Consider the efficiency of your solution for very large arrays.<p>It is amazing how many seemingly knowledgeable, intelligent people cannot do this. And the vast majority of those who do, do it by sorting the array, efficiency be damned.<p>Actually, I&#x27;d like a bit of feedback here. Is this something any decent developer should be able to do with ease? Should it be obvious that it can be done much more efficiently without running a sort on the array? Admittedly there are minor gotchas with things like the initial conditions, but still, I&#x27;ve been flabbergasted by how few people can even get close to a solution, let alone a bug-free and efficient one.
评论 #8123946 未加载
评论 #8123920 未加载
评论 #8123942 未加载
autarchalmost 11 years ago
FizzBuzz is a reasonable way to find people who can&#x27;t code. I&#x27;ve been surprised to find people with resumes that appeared decent who couldn&#x27;t complete FizzBuzz even given 20 minutes of time to do it in.