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: How do you prepare for a Technical Interview

8 pointsby 64bitbrainabout 10 years ago
Hi.<p>I am full time software developer and my day to day activities involve bug fixes and sometimes working on a prototype or POCs. I recently got an chance to interview and after a little research I found that, they are more focused on Data Structures and Algorithms coding questions. The problem here is, that I know what a complexity of a quick sort or how I do use HashMaps, but I don&#x27;t work on these data structures or algos everyday, or even write a tree traversal routines. I remembered all these when I was a fresh graduate. How do you deal with this? Should I ask more time before I go for an interview?? What should be a better approach.<p>Sorry for my bad English. Thanks in advance.

7 comments

leap_aheadabout 10 years ago
Personally, I have come to realize that you cannot truly prepare for a technical interview no matter what you do. You can study for months in a futile attempt to commit to memory everything that might be relevant (data structures, algorithms, maths, statistics, API reference etc.) but they will always find something to ask you that you missed during your studies.<p>These days I simply reply that I do not do technical interviews any more as I do not believe these can efficiently probe one&#x27;s professional abilities and I cannot justify expending time in memorizing bulkloads of trivial information for the sake of going through some rite of passage, which some interviews often turn into.<p>Agreeing to a technical interview also puts you at a disadvantage. They will probe your weak spots and then use this knowledge to publicly disgrace you, declare you less competent than what you&#x27;d like them to believe and then to low-ball you with an offer below what you might otherwise get. Many developers fall for that trick, the best you can do is to make sure you don&#x27;t join their group.<p>Just say to them you will not do a technical interview (or a test project on your own unpaid time) but that you are prepared to meet and have a constructive discussion around their needs and your willingness to possibly help them out with whatever they have in mind. If they don&#x27;t like it, skip them for the next company in your list.
poof131about 10 years ago
I like the advice given here: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@davidbyttow&#x2F;abc-always-be-coding-d5f8051afce2" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@davidbyttow&#x2F;abc-always-be-coding-d5f8051...</a><p>I&#x27;m thinking about making a move and am slowly prepping algorithms and data structures again myself. Going to focus on studying nuances of the language I&#x27;m working with - JavaScript (+HTML, CSS) and the frameworks I&#x27;m currently using - Angular &amp; Node.<p>But having seen the other side now, I recognize that you will most likely run into peoples&#x27; pet questions that you can&#x27;t always prepare for. One coworker gets upset when people can&#x27;t answer his Angular question, another gets upset if the Java isn&#x27;t idiomatic enough. If they like you enough they&#x27;ll overlook it.<p>So study what you can, be confident but not arrogant, and recognize luck will play a factor. I&#x27;d rather be writing code to build things than for practice, but it is part of the game. And in reality the quizzes should really be a screen and the decision should be based upon the things you&#x27;ve built. So hopefully you have things to show, can talk about what you&#x27;ve done, and the team your looking to join recognizes actual accomplishments are more important than solving puzzles on the spot.
harpbabout 10 years ago
I read Programming Interviews Exposed (<a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Interviews-Exposed-Secrets-Landing-ebook&#x2F;dp&#x2F;B008SGNJOW&#x2F;ref=tmm_kin_title_0?_encoding=UTF8&amp;sr=8-1&amp;qid=1430703825" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Programming-Interviews-Exposed-Secrets...</a>) - which covers lot of topics that come up during interview.
MalcolmDiggsabout 10 years ago
I&#x27;ve found that technical interviews are their own best prep. I&#x27;m sure you get contacted by recruiters&#x2F;startups pretty regularly (and that you usually pass on these opportunities). I try to say &quot;yes&quot; to one or two per week, and go through their technical interview process, just to stay on my toes.<p>It takes the pressure off and keeps you on top of your game.
sohamabout 10 years ago
Three main ways to prepare for a technical interview are:<p><pre><code> 1. Books 2. Websites 3. Classroom courses </code></pre> =====<p>Books<p>=====<p><pre><code> There are a dozen or so books in the market. The two most popular books (and well written also) are: 1. Cracking the Code Interview 2. Elements of Programming Interviews </code></pre> ========<p>Websites<p>========<p>Websites are roughly divided into two groups:<p>a. Where you can write code and compare yours with others&#x27; solutions<p>Popular ones, in no particular order, are:<p><a href="http:&#x2F;&#x2F;leetcode.com" rel="nofollow">http:&#x2F;&#x2F;leetcode.com</a><p><a href="http:&#x2F;&#x2F;HackerRank.com" rel="nofollow">http:&#x2F;&#x2F;HackerRank.com</a><p><a href="http:&#x2F;&#x2F;uva.onlinejudge.org&#x2F;(UVA" rel="nofollow">http:&#x2F;&#x2F;uva.onlinejudge.org&#x2F;(UVA</a> Online Judge)<p><a href="http:&#x2F;&#x2F;SPOJ.pl" rel="nofollow">http:&#x2F;&#x2F;SPOJ.pl</a><p><a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;</a> (Project Euler)<p>Note that not all of them have questions that are interview oriented. But it&#x27;s great practice regardless.<p>b. Ones that give you a problem and then a solution, with no or little competitiveness<p>Popular ones, are:<p><a href="http:&#x2F;&#x2F;InterviewCake.com" rel="nofollow">http:&#x2F;&#x2F;InterviewCake.com</a><p><a href="http:&#x2F;&#x2F;GeeksForGeeks.org" rel="nofollow">http:&#x2F;&#x2F;GeeksForGeeks.org</a><p><a href="http:&#x2F;&#x2F;Glassdoor.com" rel="nofollow">http:&#x2F;&#x2F;Glassdoor.com</a><p><a href="http:&#x2F;&#x2F;Careercup.com" rel="nofollow">http:&#x2F;&#x2F;Careercup.com</a><p>=============================<p>Classroom courses &#x2F; Bootcamps<p>=============================<p><a href="http:&#x2F;&#x2F;InterviewKickstart.com" rel="nofollow">http:&#x2F;&#x2F;InterviewKickstart.com</a> (I run this one)<p>Having said that, realize that you are not alone. Most programmers these days don&#x27;t use fancy data-structures and algorithms at work.<p>But unfortunately, interviews still ask for it. That is a whole debate on its own.
评论 #9514198 未加载
rifungabout 10 years ago
I used to prepare for them using CareerCup and doing problems on either HackerRank or Google Code Jam&#x27;s practice problems.<p>Now though I usually don&#x27;t even bother and just go to them; I think that after you studied for them the first time you kind of already know what to expect, and the interviews themselves kind of prepare you, so usually I try to schedule interviews I don&#x27;t care about as much before the ones I really want to do well on. The scheduling also helps because for the first one I might be nervous but if you keep doing it I think your body just gets used to it and I honestly kind of stop caring whether I&#x27;ll get in or not. it might sound counterintuitive but I actually find that the less I care the more likely I am to do well.
MichaelCrawfordabout 10 years ago
I prefer the book &quot;Algorithms&quot; 2nd Edition by Sedgewick. It is long out of print but can be had used for a song.<p>Implement each algorithm in the book in your preferred language. The algorithms themselves are presented in Pascal, which IMHO makes them easier to understand.<p>Now implement them all in some other language - not your preferred one.