Tech IndustryJun 3, 2019
PalantiraYeL86

Uber phone screen

Just got news I failed an Uber phone screen for a senior dev position. This one really threw me off since it was a tougher problem (probably LC hard), and I got to a working solution at the end that compiled and passed the couple example cases he gave at the at start. Problem: you’re given a list of bus routes (each route is represented as a list of stations, so you have a list of list of integers). Find the least number of route changes to get from station a to station b. (Two routes may have the same station, which is a transfer point). I believe the trick here was to build the graph such that each route is a node instead of each station (which he hinted at, when I initially thought about modeling each station as a node). I just can’t fathom not giving someone an on-site when they produce working code for a question like this. What gives? Was it not good enough that he had to give me a hint (even though my initial solution would have worked, but not been optimal)? Could their tanking IPO have played a part here?

Goldman Sachs pakalu Jun 3, 2019

If the hint that the interviewer provided you was the key to solving problem, it's very likely that was the reason they rejected you. But again that's my guess. Uber is well known for asking LC hard in phone interviews. Usually it helps to go through Uber tagged hard questions on LC.

New
4everalone Jun 3, 2019

or other candidates did better than you. (need a more subtle hint, explained things better... etc)

New
SeaTack Jun 3, 2019

This question is on leetcode. I think its called “bus routes”.

Uber Anti-Mage Jun 3, 2019

It’s equally important HOW you arrived to so called ‘working solution’ and whether or not you were able to see flaws and ways to improve. Hard to tell how fairly you were judged without being on the other side. Keep in mind that things that interviewer is looking at might be different from what you think is important.

Samsara kKCg74 Jun 3, 2019

Anytime someone uses the word “path” you should shout graph in your head and if someone says “shortest path” you should immediately think Dijikstra or DFS. I don’t think you’re not competent, but since that question is such a well known question, I’m sure someone else killed it and they went with them

VMware singh-king Jun 3, 2019

words of wisdom.

Nutanix 1adja134 Jun 3, 2019

I think you mean BFS

Amazon tzchar0 Jun 3, 2019

You thinking the tanking IPO is why you didn’t get an on site is probably a pretty good explanation of why you didn’t get an on site

Amazon VXAt50 Nov 10, 2021

I literally just got asked this exact question. I similarly managed to pass the test cases he gave at the beginning, let’s see if I meet the same fate! Haha

Amazon VXAt50 Nov 10, 2021

It’s a bummer too, because after reading your post, I almost googled the solution!