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

5

u/Admiral_Wen Feb 16 '21

I can see that for the software engineering domain, but not data scientists. Many Project Euler or LeetCode problems make use of concepts like DFS or dynamic programming, which while "interesting" isn't within the range of what a data scientist is expected to know. As the OP points out, ML, data storytelling, and statistical foundations is the core of data science. Project Euler type problem solving is fun, but doesn't test the kind of knowledge that's crucial for data science roles.

0

u/recovering_physicist Feb 16 '21

Project Euler type problem solving is fun, but doesn't test the kind of knowledge that's crucial for data science roles.

No, but it does test the kind of problem solving skills that are essential for data science roles.

Unfortunately (or fortunately, depending on how you see it), taking on an Euler problem you don't already know the solution to typically takes far too long to be a reasonable test during a job interview process. That said, if someone happened to have solved a bunch of Euler problems in the past I would consider that strong evidence of key DS skills.

3

u/Admiral_Wen Feb 16 '21

Can you give me a realistic example where knowing dynamic programming or DFS is useful towards data science problem solving? Remember, the OP specifically mentioned these kinds of comp-sci type algorithms; he's not talking about more common stuff like loops, strings, or hash maps. I'm genuinely curious, not trying to challenge you here.

So for example, Unique Paths II is a dynamic programming problem, and Unique Paths III is a Hamiltonian Paths problem which is solved using DFS. In what scenario would being able to solve these be useful for a data scientist, as opposed to just hiring a software engineer?

0

u/recovering_physicist Feb 16 '21

I'm not suggesting that knowledge of the specific answers to problems like that are necessarily useful to a data scientist. I'm saying that the ability to see an unfamiliar problem with that, and find, understand, and implement a reasonably efficient (i.e. <1 min for project euler problems) solution to it requires a mindset and level of aptitude that are hallmarks of a good data scientist.

0

u/bythenumbers10 Feb 16 '21

Agreed. Solving these problems optimally off the top of one's head (like a trivia question) is unnecessary. But, demonstrating the ability to research strong solutions with proper resources at hand is a crucial DS skill. Sure, the skills you listed should be top of mind, but the algorithmic questions should be feasible and doable. Not in an offhand manner mid phone interview, but in person or a take home test w/ wikipedia or Google on hand? Vastly preferable to the "ML tests" I've done & seen where the candidate must cobble together enough SK Learn and Pandas to bamboozle the HR drone into submission.