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

2

u/Kengaro Feb 16 '21 edited Feb 16 '21

complicated SQL, pandas, data munging, visualization, ML training, building simulation code, etc.)

This is tool knowledge, at least most of it. Meaning it says little about analytical skills or problem solving skills in general. It says a lot about specific knowledge, and experience with certain tools.

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"

This is a general question testing problem solving & logical thinking. These type of questions are useless if the question is known and the solution can bee looked up & learnt. So if your interviewer is expecting a person like op answering with different path finding algos it is imho a waste of time for both parties.

It has to do with what type of person you are looking for, I suppose.

1

u/MrFlamingQueen Feb 16 '21

The second question has bias against those who didn't grow up in environments playing chess. Unless the interviewer is explaining the rules of chess to the applicant, you could potentially be weeding out people through no fault of their own.

2

u/Kengaro Feb 16 '21 edited Feb 16 '21

Any of these questions is useless without a full set of rules (at least for testing the things mentioned above), if there is something missing people should ask, if an applicant is wed out for asking - now that would be quite ridiculous indeed. I agree with you, any question like that should have a completely explained ruleset.

When rules are on purpose not complete, not only the abbilities above are tested but also the character of a person. While it might seem like a boon to test multiple things at once, a question without a full ruleset will give little insight in regard to the skills problems like the "chess-problem" are ment to probe.

If we have a problem with known rules to a certain part of the population, such as chess, and an interviewing person which does not explain the rules, we change the purpose of the question in a useless way. As soon as rules can be deducted from knowledge, it is no longer a test of character, and if that knowledge is no requirement for a job the interview process would be flawed.