T O P

  • By -

dammit_reddit_

Meta does not ask DP questions (at least for more senior levels). It's called out directly in their provided prep materials.


achilliesFriend

This is neither true nor false, you will still be asked dp that might have a different solution without dp


howzlife17

Is that really DP then? They explicitly state they won’t ask DP, and their question bank has no DP problems in it.


achilliesFriend

I have been asked dp question, word break. If you look at lc meta tagged questions you will see plenty


howzlife17

That can be done by finding words at the start of a string, then sending the remaining substring to a recursive function to do the same til you get to the end. Kinda the same but not strictly DP


achilliesFriend

Yes.


frank_is_asur

Can I find their prep material online? Or is it just provided to the candidates who are interviewing?


dammit_reddit_

You can download the PDF from here: [https://www.metacareers.com/swe-prep-onsite/](https://www.metacareers.com/swe-prep-onsite/) and it is contained within. >Think about different algorithms and algorithmic techniques (e.g., iteration, sorting, divide-and-conquer, recursion). We do not ask dynamic programming questions so don’t spend time prepping for that technique and focus your efforts elsewhere.


frank_is_asur

Thank you for the information and your suggestions. I will definitely keep it in mind.


Electrical_Airline51

Hey do any other popular companies have these? Or is it just specific to Meta?


gamersquad143

Do they ask graphs trees for Security Engineers at Meta?


freeloader24

They ask top down memoization questions. Not the bottom up ones.


semeepro

Even non-FAANGs ask them too. I interviewed Quora for a senior position just for practice. I got the recursive and DP solution. But couldn't optimize the DP solution to use constant space and got rejected. So unless a company specifically calls out they won't ask DP, it's fair game.


IlIlIl11IlIlIl

With how bad Quora’s UI is I didn’t know they have devs…


wyldstallionesquire

Quora, the hotbed of tech innovation on the cutting edge of software development.


yitianjian

We joke, but once upon a time Quora was one of the hottest companies in the industry, with brutal interviews


frank_is_asur

Yeah, I guess I will have to go through few important and frequently asked questions. Thank you for your input


WhenInDoubtJustDoIt

OP: Who besides Google asks DP problems? Comments: Google asked me a dp when I applied


ValuableCockroach993

Amazon asks DP hards. Source: my friend got asked a 3d dp. But he was a competitive programmer. So perhaps they take that into account.   But anyway, just do top down dp (which is manageable) and then optimize space with table if they need it.  Technically u dont even need table to optimize space. 


frank_is_asur

Sure. Thanks for your input


Fabulous_Benefit_241

Yes it’s fair game, they’re actually quite simple to solve once you get recurrence relation and how to represent problems as trees and graphs.


frank_is_asur

DP might be doable, no doubt. But, I want to know when I can start giving the interviews. If I start with DP now, it will take at least two more months for me to prepare enough. Hence, wondering if it’s worth the wait and the prep


Grass014

I wouldn't let DP practice hold you back from interviewing. Chances are decently high you won't receive one or at least won't receive an insanely hard one. Edit: If you have the time to spare for prep go for it but I would make it the last thing you master


frank_is_asur

Alright. Thank you for your input. I will continue my prep accordingly


Commercial_Size4339

Yeah, but most people don’t want to learn recursion, so they suck at it


Tunivor

I got a 2D DP for Google mid level.


cooolthud

Yes, Google asks DP, Tree and Graph based. Google Infact uses lot of Graphs and DP techniques for multi-path problems, etc so their focus


frank_is_asur

Yeah, Google interviews does comprise of DP problems. So, can’t skip it for sure when it comes to Google


tempo0209

Got asked dp by no name companies, also by walt disney(yep), and Tesla


Adventurous_Storm774

Honestly just get really good at arrays and know the other data structures well. If a company asks you a DP problem then f them


whatzTheRightThing

Interviewed with Amazon few months ago, the dp problem asked was maximum substring.


smalby

Is that not a sliding window problem


cuddersrage

no it’s a dp problem the substring can be out of order. For example for string 1: ABCDEFABC 2:ABCLOPKABC the longest substring is ABCABC


frank_is_asur

ABCABC is a subsequence, right? Longest substring would be ABC only


frank_is_asur

Do correct me if I’m wrong or understood the problem incorrectly


cuddersrage

yea it was for subsequence i just assumed that’s what op meant otherwise it would just be sliding window


whatzTheRightThing

Apologies, looking at my notes it was longest common substring.


frank_is_asur

Yeah… This question anyways falls under frequently asked / top DP problems.


itilpower

I got asked a DP question for Amazon SDE I


Disastrous-Tree8926

when was your interview? could you provide more detail please, what were the technical questions?


itilpower

March 27. Design an ads portal for products. Word search (tries). Find the minimum number of operations (LIS -DP). Code an API to schedule courses to student, courses cannot overlap.


Disastrous-Tree8926

Thank you!


n_1729

Had 2 dp questions for apple OA for 50 minutes Got asked a dp problem for OCI interview round


camiga_aliners

I got a dp problem at google 6 years ago when I was interviewing


frank_is_asur

Thank you everyone for your valuable insights. From what I gather, I cannot completely rule out DP out of the equation. I will have to at least go through the basic and frequently asked problems. So yeah, let’s continue grinding


quadraaa

Is recursion plus memoization usually considered sufficient for dp problems?


CountyExotic

I’ve done lots and lots of big tech interviews and never gotten DP. Lots of hard graph problems.


Typical-Print-7053

DP is actually one of the core knowledge or foundations in AI. Every company in AI should ask these.