News for hackers. Stuff that matters.
Re:Archive of tech interview questions of Google, Amazon, FB... by erhk on Tuesday October 06, 2020 @02:30PM (#24700866)
Whenever you post an interview question online your interviewers life get a little bit harder. These questions get blacklisted for being associated with their company and they then have to synthesize a new question
Re:Archive of tech interview questions of Google, Amazon, FB... by klodolph on Tuesday October 06, 2020 @02:47PM (#24701030)
The blacklist can only get so long. There is a bank of questions but they only really get blacklisted if a bunch of candidates show up and they’ve obviously memorized an answer to it. Or if it shows up in a high-profile place. Like, if your question is the first question in a new edition of “Cracking the Coding Interview” it will probably get dropped.

I think individual questions that got posted would be blacklisted ten years ago. But nowadays, there are so many people doing interviews and such a large bank of questions (public and otherwise) that the blacklist isn’t so big a deal. Because there are so many vetted questions to ask, you can pick one and not worry to hard candidates may have done drills using that specific question. And if they have, you can have a second question on standby.

As an interviewer, I’m happy to see questions posted. You get to see people share their experiences answering it and make the question better, rephrase things to be less ambiguous or misleading, maybe tweak some wording that trips up non-native speakers, or decide that people have a bad experience answering it and you should drop the question. As an interviewer, I also ask questions from the blacklist. I’m not gonna say something arrogant like “I can tell” if you knew the question ahead of time, but my job as interviewer is to get the best information about you that I can to the hiring committee, and balancing that with the goal of giving you a pleasant enough experience during the interview that you want to accept an offer. Trying to catch cheaters is not my top priority.

All of this being colored by the facts that the interview process itself is a bit traumatic and people running interviews often don’t run them well.

Re:Archive of tech interview questions of Google, Amazon, FB... by manfredo on Tuesday October 06, 2020 @02:57PM (#24701133)
The way some companies work is that there's a set list of question archetypes, but interviewers come up with their own methods of presenting the problem. For example, a seam carving problem might get presented as finding a horizon in an image. I would often present the same problem as finding a pass through a mountain range given a height map of the terrain.

Also, it's possible for interviewers to detect candidates who study the problem beforehand. A couple questions at Dropbox were spread online for years, and it would become clear which candidates read up on those questions online. Some would propose, without prompting, solutions to older iterations of the interview question.

Re:Archive of tech interview questions of Google, Amazon, FB... by klodolph on Tuesday October 06, 2020 @05:25PM (#24702493)
The last time I did this my experience was a little different. There was a big bank of questions that you could vote on like Reddit, and questions would get marked as “banned” or unmarked.

You’re free to ask the questions that you liked, but I found it helpful to use one of the questions from the bank that had a ton of commentary, and then polish it to my own interview style.

Re:Archive of tech interview questions of Google, Amazon, FB... by visarga on Tuesday October 06, 2020 @02:44PM (#24701003)
I'm just going to use this list to steal a problem for my interviews.

It's hard to find a problem that is good at selecting candidates yet doable in 30-60 minutes and different from the problems other colleagues use in their interviews. Most problems are either too difficult or too easy.

Re:Archive of tech interview questions of Google, Amazon, FB... by tudelo on Tuesday October 06, 2020 @02:33PM (#24700888)
On the other hand, some of the questions can be rather interesting to solve. I also notice there are just a few patterns/techniques that you can use to solve them so the questions themselves do not seem all that important.
Re:Archive of tech interview questions of Google, Amazon, FB... by jciochon on Tuesday October 06, 2020 @02:50PM (#24701067)
Which patterns and techniques are you referring to, in particular?
Re:Archive of tech interview questions of Google, Amazon, FB... by manfredo on Tuesday October 06, 2020 @03:02PM (#24701171)
It's almost always a combinations of:

* Searching algorithms

* Sorting algorithms

* Dynamic Programming (memoization)

* Graph operations (traversal, best path, minimum spanning set)

* Maps & Hashing.

* Heaps or trees. E.g. finding a median or top-k elements.

Every once in a while you'll get a more exotic problem that requires something like a bloom filter or a trie.

But that's just enough to get the solution. A good interviewer will also see if you can build this solution in a way that has effective abstractions. They'll also probe real-world concerns like data locality. For instance, one solution might be better in terms of big-O notation performance but might have worse access data pattern than other solutions.

Re:Archive of tech interview questions of Google, Amazon, FB... by kadoban on Tuesday October 06, 2020 @02:43PM (#24700991)
They're fun problems though typically.

Don't problems have to be rotated eventually anyway? You'd think otherwise there would be secret silos of problems and those in the know will have much better results than anyone else.

Re:Archive of tech interview questions of Google, Amazon, FB... by 21eleven on Tuesday October 06, 2020 @02:54PM (#24701105)
I feel like this is an often overlooked fact about these programming exercises, once you get into solving them they are surprisingly fun.
Re:Archive of tech interview questions of Google, Amazon, FB... by scsilver on Tuesday October 06, 2020 @04:55PM (#24702239)
Sure, but as someone 5 years into this career, I keep wanting to make my life not all about programming. Its isolating.
Re:Archive of tech interview questions of Google, Amazon, FB... by newbie578 on Tuesday October 06, 2020 @02:45PM (#24701013)
While I do feel sorry them, the game is broken and we cannot just sit idle by.

I am all supportive of people trying to game these big companies. Play stupid games, win stupid prizes.

Re:Archive of tech interview questions of Google, Amazon, FB... by volkk on Tuesday October 06, 2020 @02:47PM (#24701029)
by stupid prizes you mean a gigantic salary that no other company can match?
Re:Archive of tech interview questions of Google, Amazon, FB... by danbmil99 on Tuesday October 06, 2020 @02:59PM (#24701149)
What's the point of hiding the interview questions? What does the hiring company care whether the applicant learned that years ago or crammed for it recently?
Re:Archive of tech interview questions of Google, Amazon, FB... by fizixer on Tuesday October 06, 2020 @02:37PM (#24700929)
Which is a good thing right?

All questions and their solutions should be exposed, so big tech can get to work on fixing their interview process?

Re:Archive of tech interview questions of Google, Amazon, FB... by sumtechguy on Tuesday October 06, 2020 @02:58PM (#24701144)
Not a bad idea. The idea of 'fizzbuzz' was to just filter out the total unable to do it at all people. Not to filter for people who can do coding interviews. Honestly, that these questions are out there and people study for them make an interviewers life easier. 'Oh you saw this problem online great! explain why it works'. It cuts through a lot of gruff. Had it happen a few times with the particular problem I like to use. If they can read cracking the coding interview and understand the problems in it and explain them back you are half way there!
Re:Archive of tech interview questions of Google, Amazon, FB... by underwater on Tuesday October 06, 2020 @03:07PM (#24701215)
I've had to stop interviewees and if they've seen a question before - it's pretty obvious when they have.

As an interviewer you then have to scrap that question and ask a new question on the fly. This is bad for the candidate because there is now less time and it might be a question the interviewer is less comfortable asking.

Re:Archive of tech interview questions of Google, Amazon, FB... by jasonpeacock on Tuesday October 06, 2020 @04:36PM (#24702073)
When this happens, don't switch questions, ask the candidate to teach the solution to you.

e.g. Why is this the right solution? Why not another approach? What are the tradeoffs? Where does this solution fail?

Re:Archive of tech interview questions of Google, Amazon, FB... by justaguy88 on Tuesday October 06, 2020 @02:34PM (#24700896)
Perhaps they should ask questions relevant to the job then.
Re:Archive of tech interview questions of Google, Amazon, FB... by copperx on Tuesday October 06, 2020 @02:42PM (#24700976)
I don't see anything wrong with that.
Re:Archive of tech interview questions of Google, Amazon, FB... by drpgq on Tuesday October 06, 2020 @02:56PM (#24701122)
Everything is an arms race