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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What programming language to choose for coding interviews?

16 点作者 prabhupant超过 6 年前
I'm preparing for coding interviews. So is there any particular language that interviewers prefer? What about if I go with C or python?

15 条评论

superdeeda超过 6 年前
I prefer a high-level language like Python for coding interviews so that I can use their string operations, list comprehensions, etc. and not have to manually &quot;implement&quot; the boring parts of the questions.<p>As an interviewer I would really rather not sit and watch someone write C on a whiteboard. Use whatever language you feel like you can skip to the interesting parts of algorithms. Even pseudo code could work.
hluska超过 6 年前
I&#x27;ve been both an interviewee and an interviewer and honestly, in both roles, I prefer pseudo code.<p>As an interviewer, it gives me a chance to step back from noticing syntax errors and lets me focus on how the candidate thinks, reasons and explains her way through problems.<p>As an interviewee, I prefer pseudo code because I don&#x27;t have to worry about syntax or minute details of a language. Instead, I can just focus on communicating how I&#x27;m working through the problem.
ioddly超过 6 年前
The one you&#x27;re most comfortable with.<p>Personally I choose Python given the option: easy to write, slices and comprehensions generally make algo question answers very terse.
arh68超过 6 年前
C is bad, a real bad choice. I was given a few options by a Google recruiter, and I felt more up to date with C than Java, so I went with that. He seemed to approve. Boy, it was a bad choice.<p>One interviewer laughed and asked me if I wanted to switch languages, right off the bat. In retrospect, that was gracious. He said I was probably not going to finish in time, but.. if I really wanted to.. I could give it a try. I kinda froze.<p>The last interview was more of looking at sample code &#x2F; code review, and get this: it wasn&#x27;t even in C, it was C++. Not what I expected! Turns out I should&#x27;ve been studying that, too. They are certainly similar, but it&#x27;s just another curve ball.<p>Python is a much, much better choice, I now realize. I just wish they allowed JavaScript! My mistake.
dagw超过 6 年前
The obvious answer is to find out what language you&#x27;ll be programming in if you get the job and use that. Otherwise just pick whatever you are most comfortable with and takes the least amount of mental effort for you to do the basics.
评论 #18614171 未加载
评论 #18608792 未加载
cakes超过 6 年前
Whatever is easier for you but (if you can) target what they write in
sjclemmy超过 6 年前
I think you need to go with one you are comfortable with.<p>That said - there will undoubtedly be bias depending on the company. For example I had a phone screen for a company that used Ruby and Go and I suggested C# and javascript because I don&#x27;t know any Ruby or Go. I didn&#x27;t get any further and this may have been a contributing factor.
peruvian超过 6 年前
High level dynamic language with a good standard library (Python, Ruby). I&#x27;ve seen applicants waste half their interview time writing helper functions in C or write a bunch of classes in Java before getting started with the actual problem.<p>That said, it helps to use a language in the company&#x27;s stack.
评论 #18614194 未加载
hkarthik超过 6 年前
For actually solving issues live, Python makes the most sense.<p>But be prepared to read a lot of solutions to problems written with for loops, do-while loops, and other constructs that are not pythonic and don&#x27;t translate as well to pythonic code.<p>In a way it&#x27;s good, because it forces you to re-implement the algorithms in a way that makes sense to you, thereby increasing your chances of actually learning and retaining the information.
neduma超过 6 年前
Pseudo language would do for me and i expect candidate be more explicit her&#x2F;his thoughts.
souprock超过 6 年前
C is OK. We&#x27;d love to see assembly language. Ideally you could show both, demonstrating that you can transform one into the other and have a good feel for what a compiler would do.
评论 #18613912 未加载
aplummer超过 6 年前
The iOS community is a good indicator that a python style language is preferred, people interview in Swift even for objective c roles.
samfisher83超过 6 年前
C standard library is not as good as python.
protocontrol超过 6 年前
So many Python zealots... Whatever you do stop this non-sense Python dictatorship
iamthelord超过 6 年前
Python please.