r/datascience • • Feb 15 '21

Job Search Please STOP asking Data Scientists about Leetcode questions meant for Software Engineers for job interviews

I've been working as a Data Scientist long enough to say that asking Leetcode questions for Data Scientists is completely disrespectful. This is both for both product and ML-based data scientists.

Something simple is fine, like hashmaps, two pointers, strings, some light algorithms etc. But graph theories, DFS with trees/dynamic programming has nothing to do with data analytics, ML fundamentals, statistical foundations, and data storytelling competence.

I really don't understand. When you have a wealth of ways to distinguish competent Data Scientists from juniors during interview pipeline (complicated SQL, pandas, data munging, visualization, ML training, building simulation code, etc.), why you'd rather choose questions like "how many moves do you need to get a Queen chess piece from this position to another on a chessboard" as a way of measuring how well a Data Scientist would perform analytics or ML training on the job. It really just feels like SWEs making fun of Data Scientists about how poor programmers we are.

Most companies don't pull crap like this, but for those who do, PLEASE STOP. Unless we received a BA or MA in computer science -- which majority if not most of us did not -- we won't be able to solve shit like this unless we cheat and look at answers directly on leetcode or geekforgeeks. And it's infuriating and embarrassing for us to sink to this kind of level to solve questions that aren't meant for us. I get that Data people need to know programming, but WE AREN'T SWEs, and DS is not SWE.

Edit: I'm getting a lot of replies saying that I suck at programming and I need to learn SWE fundamentals. I said over and over that I'm not against understanding foundations of SWE (hashmaps, runtime, pointers, optimized solutions vs brute force). These are important. But when you get into highly niched algorithm named after somebody where you need to do some complicated tricks or build a whole system that requires multiple functions, DFS-based dynamic programming, multiple inheritance methods all in 45 minutes that would unnerve even seasoned SWEs out of practice, that's when it becomes totally unreasonable, outside the realm of data science, and just disrespectful to what Data Scientists do on a daily basis. But that's the line I draw, and the overall question is: at what point do interview questions become unjustifiable and unrelated to the position at hand? I've spent years using pandas, scikit-learn, tableau, and complicated SQL for daily data tasks. Why is it that you can't test me on this stuff which occurs on day-to-day basis for majority of data scientists?

Edit Edit: Btw, shame on those of you just downvoting everything I'm saying without reading any of it (I can't even locate my own comments anymore). It's immature and completely ridiculous. I know it's the internet, but have some decency and respect for your interlocutors. You guys are all professionals right?

984 Upvotes

324 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Feb 16 '21

If they know BFS or DP, then cool, we'll talk about that. If they don't, it's interesting to discuss how one might approach it from first principals.

1

u/CrwdsrcEntrepreneur Feb 16 '21

Sure, that's a better approach, but (anecdotally at least) it's not the approach taken by most interviewers who overly rely on the LC questions.

Also, is it the best approach? And I mean this from the employers POV. How easy is it to hire a false positive? I.e. the Leetcode "expert" that isn't very useful in real world projects? Again, as someone who's gone through these type of interviews, they're actually not that hard as long as you have enough time to prepare and practice.

1

u/[deleted] Feb 16 '21

To be honest I don't actually know what people mean by leetcode. I'm never going to be asking people to write hardware level hacks for performance, or how to approximate pi or another mathematical function in less than N cycles. That's always been my definition of leetcode, the kinda stuff you need for generating 4k executable graphics demos... not the basics of how you might implement some optimisation algorithm.

After being burnt by a couple of employees that basically bluffed being able to code at any reasonable speed, I do see the value of getting down to something algorithmic and implementation questions. But I'm once I'm satisfied they can actually code, I much prefer to focus on the high level questions that are tailored to the past experience of the candidate.

Fwiw, in my country employment isn't "at will", and while I generally think that's a good thing, it does mean a bad hire is more difficult to cut ties with.