r/datascience • u/[deleted] • 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?
3
u/proverbialbunny Feb 16 '21
All of data science is applied statistics. Is statistics not being considered in this?
Also, most of the topics you're listing data scientists know better than vanilla software engineers. However, machine learning engineers and quant researchers tend to know quite a bit more math than the average data scientist. Maybe when you mention SWEs you mean ML engs? If you really like math, I highly recommend checking out the quant side of things. It's way more math heavy and a lot of fun.
The most common type of SWE is web dev, front end specifically. They need to know basic geometry to know where to place elements on a page, so there is some math there. The next most common type if infrastructure engineer / data engineer, and they need to know computational complexity theory. Knowing trees might help, but even graphs are a bit much. Though, maybe they help with setting up a database schema?
As a data scientist I've had to utilize graph theory for finding neighboring websites in a categorization project (it ended up working out well). Graph based models and ML are pretty rare though they are the hot stuff right now on the research side of DS. I don't think a data scientist needs to know it, but needs to recognize when to learn it, if necessary.
To say SWEs know more math is like.. it's not only false, but it might be romanticizing SWEs. If you think the grass is greener, you might want to consider doing SWE work for a while. Who knows, you might like it?