I bombed an interview at a game company because I gave a right answer that I couldn't get them to understand. I don't remember the exact problem they wanted me to solve, but the answer involved a dynamic collection and they wanted it to grow with constant time complexity. They were probably looking for a linked list. But I said I'd use a dynamic array because those have constant time when averaged over a series of ap…
I had to give a wrong answer to get the job (2017)
321–330 of 409 posts
Re: I had to give a wrong answer to get the job (2017)
#322> So I decided to start by giving the correct answer, and see how he responded. I explained “The model-view-controller is a software pattern, and so resides inside the written code. Since in most cases, this code only runs on the application tier, …”. But then I saw him frowning, and so knew this was not the answer the was expecting. So I continued: This is a great cold reading technique that works in magic tricks to…
I used to do a very stupid magic trick where I would have someone pick a card and then shuffle it back into the deck. I would shuffle a few more times while asking them to focus on their card. Then I would ask them to name their card. They did. I would put down the deck and say "not only have I found your Ten of Clubs..." and then I would look at the top card and finish with "...but I have changed it into the Ace of…
Re: I had to give a wrong answer to get the job (2017)
#323Earlier quoted context omitted.
If I remember correctly, that question likely refers to some argument in the driving manual about speeding. Something along the lines of "speeding in most urban areas doesn't actually help get someone to their destination faster. There are always multiple traffic lights and other cars to contend with, so it's not helpful to go over the speed limit and it increases the risk and severity of an accident." It's perfectly…
There's that, but there's also the possibility that it's conflating two things: If you're speeding, you'll also have to go around cars that aren't, which reminds me of this one about weaving between lanes vs sticking to one lane that the Mythbusters tested: https://www.youtube.com/watch?v=ZefgUVg3qx0 (4 minute long cut of segments from the episode). They found that weaving between lanes is faster, but not by very muc…
If you know the area and traffic patterns you can do that and basically stick to your lane for long periods and just switch a few times. I have something like that on my pre-covid commute for example, where you have to be in the right most lane until between a certain off ramp and the corresponding on ramp. There's always lots of traffic and you go between 10 and maaaybe 40 km/h. There you switch to the leftmost land so that you don't get bogged down by the regular mergers from the on ramp in the right lane and the 'middle lane drivers' who merge into the middle lane right about there too. Then until the next on ramp you stay on the left lane but have to switch over to the right lane again because no trucks allowed on it and most people try to pass on the left lane while everyone else is stuck with middle lane drivers and trucks.
If you know the area in the above example, just choose lane 1 for sanity. If you don't know the area and happen to stick to lane 4,id rather try weaving to be honest.
Re: I had to give a wrong answer to get the job (2017)
#324Earlier quoted context omitted.
Replying here because I can't to the relevant comment: > No it’s not, it’s about trying to quantify algorithmic complexity. And what would you say is the goal of quantifying algorithmic complexity?
BTW I've found that in cases where the reply and/or edit button(s) disappear, refreshing the page usually causes them to appear.
Re: I had to give a wrong answer to get the job (2017)
#325Earlier quoted context omitted.
BTW I've found that in cases where the reply and/or edit button(s) disappear, refreshing the page usually causes them to appear.
There's a delay before the reply button appears to encourage more thought as discussions get deeper. A HN thing.
Re: I had to give a wrong answer to get the job (2017)
#326Earlier quoted context omitted.
BTW I've found that in cases where the reply and/or edit button(s) disappear, refreshing the page usually causes them to appear.
There's a delay before the reply button appears to encourage more thought as discussions get deeper. A HN thing.
Re: I had to give a wrong answer to get the job (2017)
#327I bombed an interview at a game company because I gave a right answer that I couldn't get them to understand. I don't remember the exact problem they wanted me to solve, but the answer involved a dynamic collection and they wanted it to grow with constant time complexity. They were probably looking for a linked list. But I said I'd use a dynamic array because those have constant time when averaged over a series of ap…
Asked: "constant time complexity"
Answered: "constant time when averaged over a series of appends"
In an interview, the onus is really on candidate to answer the question as it was asked. Candidate did not answer question, and there was a breakdown in communication. Candidates interpretation is that interviewers didn't know what candidate was talking about. Interviewers could just as easily have been frustrated that candidate did not see significance of the difference.
In my experience, interview technique requires establishing a common ground. As an interviewee, I find that the first step of answering a question is to first go through a number of possibilities starting with the most obvious first. They were most certainly looking for a linked list. This is a simple question with an obvious answer. It would have been good practice to start with the answer they obviously wanted, and then try to broaden their minds. Instead, candidate willfully derailed the interview.
To me this looks like a classic breakdown of communication with a root cause of hubris (quite possibly on both sides).
While both sides failed in this account, only one has the benefit of hindsight in writing about it here today. Time has offered an opportunity for reflection. What has candidate learned? "[look how clever I am] so joke's on them"
Re: I had to give a wrong answer to get the job (2017)
#328I bombed an interview at a game company because I gave a right answer that I couldn't get them to understand. I don't remember the exact problem they wanted me to solve, but the answer involved a dynamic collection and they wanted it to grow with constant time complexity. They were probably looking for a linked list. But I said I'd use a dynamic array because those have constant time when averaged over a series of ap…
I bet they weren’t as dumb as you think and you were passed on for being stubborn and drunk on ego. Of the many scenarios where amortized complexity is not okay, code in a tight loop where predictable performance is key, e.g. code running game logic, jumps immediately to the top of the list. The fact that you were unable to incorporate this into the conversation makes me suspect you were more interested in putting on…
Re: I had to give a wrong answer to get the job (2017)
#329Earlier quoted context omitted.
Ah okay, that makes sense.
Actually I managed to find out the exact wording of the question, it was fairly different from what I remembered: What affects the duration of a planned journey? a) Length of the journey. b) Maximum speed in few lone sections of the journey. It uses checkboxes, so you can check both. They expect you to check only a), but b) is in my view also logically correct answer as if at any section even if it's shorter than 1 m…
"few" and "lone sections". As in statistically irrelevant. The assumption is that people 'get' for example (and its being taught over and over in driving school too) that if you speed to get through one traffic light in the city you'll not make it through the next one anyway and thus not really be faster. On the highway if you only speed once or twice for a short lone section you won't really notice in the end.
You don't even have to come at it with a nerd mathematicians mind and play tricks like Max speed near zero (not a realistic scenario so not something a driving exam would ask but definitely a fun scenario in a math lecture at university maybe). I can think of multiple sections in my city where speeding through the right traffic light when it's "cherry green" will net you a significant advantage because of the awful street and intersection layout and traffic light phases in that area. If you do the same just one traffic light after it though it won't help you at all because the next light will catch you unless you really want to cause an accident.
And if you are driving a 500km+ route and you can "speed" through it at 160+ km/h for a significant portion of it vs. going 120 that will save you a noticeable amount of time on the journey. This assumes something like Germany and your route being in parts with not many speed limits and not too much traffic so that you can comfortably cruise at 160 to 180 vs. arriving as a nervous wreck close to a heart attack because of all the near crashes from slowing down for the grandma going 100 switching to the left lane a few car lengths in front of you.
Re: I had to give a wrong answer to get the job (2017)
#330Earlier quoted context omitted.
You should have just said "Look guys, trust me, I am going to write Game Programming Patterns one day"
I was already writing it when I did this interview! (Though, I hadn't gotten to the chapter on data locality yet.) One of the main reasons I started writing it was to help my job search. Which, ironically, ended up not being necessary because I left the game industry. What's crazy to think about is that if I hadn't failed this interview, I probably wouldn't have gone to Google. So this one weird failure to explain th…
Funnily enough, I am trying to go the other way over the next decade or so, ...so looking forward to reading your book, heh