Tech IndustryFeb 2, 2019
eBaysinshvsyb

Uber interview Dynamic Programming

I have Uber interview coming up. In the prep docs the recruiter sent, it’s mentioned to avoid preparing on memorization and dynamic programming. I was bit surprised that they called it out. I understand I should not take it for granted but wanted to ask the folks here. Does Uber generally try and avoid dynamic programming questions?

Google whocansay Feb 2, 2019

You would be under prepared if you're not able to come up with dynamic programming solutions when appropriate.

Intel udDp06 Feb 2, 2019

Lol the smart azz has spoken

Microsoft leet_away Feb 2, 2019

If you are only interviewing with Uber, then if they say it’s out of scope it’s out of scope. But if you’re interviewing anywhere else you can expect them DP questions.

Uber CoolStory Feb 2, 2019

DP rarely gives a strong signal on ability to translate idea to code - it’s one of those things where you either know it and practiced, or you will have a hard time coming up with a optimal solution at all. Only very specialized teams here use any DP if at all.

Uber loo Feb 2, 2019

Yes, we're more interested in seeing if you can invert a binary tree instead.

Microsoft KBlA86 Feb 3, 2019

DP is 0/1 situation, if you don't come up with the right solution, you're doomed.

Uber MKXK34 Feb 3, 2019

At Uber we interview with the intent of getting a "signal" of sorts on how smart the candidate is and do they have good fundamentals. DP questions are pretty bad for that since it comes down to do you know it or not. If you don't then what signal can we get from it? Likewise if you do know it how much signal do we get from that?

Uber xxvegas Feb 3, 2019

Because recent years we hired clowns who themselves don’t know DP. Pray to god that you won’t get an OG interviewer.

eBay sinshvsyb OP Feb 3, 2019

Thanks for the insights. But is it really true Uber does not ask dynamic programming questions?

Uber MKXK34 Feb 3, 2019

IDK if this has changed, but in interview training we were told not to

Facebook delete[] Feb 3, 2019

Don't study DP bro.... Please..... Source: I did interview more than 50 times at FB.

Microsoft leet_away Feb 3, 2019

Is it officially banned at Facebook as well? Or is it just that most interviewers won’t ask DP questions?

AppDynamics software g Feb 4, 2019

Uber asked me coin change problem in phone interview around 1.5 yrs ago. This is a DP problem.

Uber loo Feb 4, 2019

No, that's recursion.

AppDynamics software g Feb 4, 2019

Recursion with memoization, isn't it DP. Question was how many different ways you can make change. E.g. 11 cents can be 1 cent 11 times or 5 cents 2 times + 1 cent or 5 cents + 1 cent 6 times. You can also attempt bottom up DP which does not use recursion.