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

13

u/datasciencepro Feb 16 '21

It's not disrespectful. DS is one of the most in demand careers (from the employee side), therefore the bar has to be higher. There are more people chasing each DS opening than each SWE opening. So how do companies differentiate? This is how leetcode arose in the first place, because SWE at the top companies was so damn competitive. Now it's just like that with DS. So most companies reasonably say, let's get a leetcoder who can do DS because that whittles down the applicant pool and it's useful (i.e. being a good coder is complementary to being a good DS).

It's not about 'disrespecting'. It's the fact that DS is oversaturated and companies are forced to up the game. The fact that you call it 'disrespecting' just shows that you are victimising yourself for having to do leetcode, when everyone already has to. You are the one disrespecting what companies have to deal with with all the crappy programmers calling themselves DS because of bootcamps.

11

u/[deleted] Feb 16 '21 edited Feb 16 '21

Having to repeat myself is really annoying. I don't understand why I have to keep repeating the basic points. I don't mind leetcode. Period. I stated this multiple times and again in my edit. I'm saying that at certain point, when you ask hard level leetcode questions that require dynamic programming like island questions or some complicated search algorithm where you need to use some neat trick/memorization to get it, this is when it crosses the line because at that point it has little to do with data and science. Why do I have to keep saying that leetcode fundamental is fine? I said that hashmaps, pointers, recursions, etc. are fine. What did I get wrong?

And on your point of differentiation, there are many many other ways to differentiate candidates, whether that's complex pandas or SQL or something that Data Scientists use on a daily basis. If leetcode is fine, then why is not pandas and numpy? Such as creating simulations from scratch where you simulate expected value from binomial or bernoull's theorem, which would require knowledge of both stats, pandas, and coding? Do you see what I'm getting at?

1

u/Why_So_Sirius-Black Feb 16 '21

Hellos, do you mind if dm you some questions? I am senior stats major graduating this year but hoping to be a full fledged data scientist