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

7

u/CaptainFoyle Feb 16 '21

You brought them up though. It feels a bit like you're just not happy that you have not been asked the questions you wanted to be asked in an interview. That's frustrating and I'm sorry, but companies have every right to ask what they want if they think it'll help their hiring process. It's not really your position to demand they adjust to your preferences.

2

u/[deleted] Feb 16 '21

my god. My only point is that there are much better, DS specific ways to measure potential than some fancy algorithms you had to memorize or some of those island problems using complicated dynamic programming. Yes I get that it's not my position to demand. I never said anything about demanding. I'm just saying that there are better ways to interview people that's more DS-suitable.

2

u/CaptainFoyle Feb 16 '21

Well, other people's point then seems to differ.

You wrote a statement, people react. It's the internet. It feels a bit like you don't really want to even consider other people's point of view they offer in this thread, so I'm not sure if this is a very fruitful discussion.

5

u/[deleted] Feb 16 '21

Reacting on a statement and reacting on a statement I didn't make are two different things. I'm more than open to listening to other points of view, but many of them are on views not even related to what my original statement was. I said the following: fundamentals are fine, niched algorithms that even SWEs struggle with are not. That's it. That's literally it. But people are saying "you think leetcode is terrible, probably can't even do easy leetcode problem, GTFO". I really just wanted a conversation on where to draw the line on where that line on leetcode should be drawn. Is graph theory really more important to ask a data scientist than stats fundamentals?

1

u/CaptainFoyle Feb 16 '21

I agree, "probably can't do leetcode" comments are besides the point.
My point is, we can discuss all day, but it's not our decision. The company who hires makes the rules they want to hire by. If they want to apply weird rules they think help finding someone for that specific position... well that is their prerogative, whether we think it's a good idea or not. If it works it works, if not, they shoot themselves in the foot.

But you can also look at it this way: do you want to be employed by a company that (according to your OP) does not even know what they should look for in an applicant?

Edit: spelling

1

u/[deleted] Feb 16 '21

Yea these are good points. And honestly, as I've mentioned, most companies don't do weird stuff like this. It's only very few companies with legacy interview systems. It's just that I had to do one of these weird island problems recently and got pretty upset since it's a company that I was really excited about.

I think the question of where to draw the line (graphs? hashmaps?) is really meat of the question that is worth investigating. There isn't an industry standard for DS unlike SWE. So I think it's a pertinent question for all interviewing data scientists

1

u/CaptainFoyle Feb 16 '21

Hmm that sucks. job hunting is annoyingly harsh.