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

1

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

If you're doing "cutting edge research developing new ml algorithms" you aren't even a data scientist at that point. Those are Research Scientist positions requiring PhD, many in stats or computer science. I have buddies like that, doing Deep RL stuff at Google with their awesome Phds. So based on your background, it's no wonder why you're making these comments.

What you're describing is a very specific category of people who are in the noticeable minority. I don't have a PhD, most people don't, we normally don't get to do cutting edge research. If you thought this problem from not your own specific background, but background of most data scientists as a whole, I'd appreciate it.

0

u/[deleted] Feb 16 '21

I’m saying that at all levels beyond a data analyst, programming is a more important skill than statistics. An entry level data scientist will use basically zero stats but requires good programming skills. An advanced data scientist will maybe require a little bit of stats but still programming is way more important.

Bottom line: programming is important and statistics is not.

2

u/[deleted] Feb 16 '21

oh wow that's not true. At all. If you're entry level data scientist in charge of experimentation, you need to know stats, p-values, etc. and explain that to internal/external stakeholders. Nothing to do with good programming since SWEs will build the A/B test pipeline for you

1

u/[deleted] Feb 16 '21

I feel like you aren’t providing much value there beyond what the swe is doing. I’ll just teach my swe how to calculate p-values. The swe made a whole pipeline and it only takes a few hours at most for them to learn the necessary statistics for a/b testing.

2

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

wow that's really presumptious, and really disrespectful. You just basically spat on all the data scientists/statisticians doing this kind of work as useless. Need I to remind you that you are a Physicist yourself? If you think stats has no application to Data science, then physics isn't even on the map. It's funny you sound like a SWE clueless about data science when you aren't even SWE yourself. All my closest friends are actually senior SWEs from Berkeley working at top tech companies and they would be horrified by your comments.

Furthermore, the fact that you just said "few hours at most" tells me about your level of depth when it comes to statistics and experimentation. P-values aren't the only thing there. There's MDE, sample size calculation, Multivariate testing, factorial designs, bandits, contextual bandits, clustering of contextual bandits, peeking prevention measurements, corrections (bonferroni, novelty effects, etc). And this is just variation testing alone. And having to communicate these results to external stakeholders, whether they are clients, etc.

I can't believe I even have to explain this to another data scientist (have to admit, first time). The fact that I have to is quite telling

0

u/[deleted] Feb 16 '21

Yeah I agree physics isn’t helpful for DS. Neither is all the advanced math I took in grad school. I think a CS major with a few weeks of additional training in ML and Stats would be a better data scientist than someone like me with an advanced math and science background. The math/stats required for data science is easier to learn and less important than the programming, in my opinion.

I think the issue here is that we’re talking about different jobs. I’m talking about someone that uses machine learning models to make inferences about data sets while it sounds like you are talking about someone who analyzes/interprets/explains data.

2

u/[deleted] Feb 17 '21

I disagree. Math/stats is not easier to learn, it's can get just as complex and difficult as any other science fields, and once we start stratifying fields and start claiming "our field is more complex than yours", you start to create superiority complex which indirectly produces bad interview questions that I was originally talking about. I see this kind of sanctimonious behavior more among engineers than any other professions, where they think they have the most difficult jobs (an arrogance beyond acceptance). If you see IQ distribution, it's the mathematicians who dominate the top of the IQ chain.

In terms of ease of learning, I don't see programming as any more difficult to learn. I complain about it because I don't often use complicated CS algorithms in my day to day job (neither do SWEs btw) and most interviewers don't ask these questions, so I don't see the point of learning it.

In terms of job differentiation, I think that's a bad approach too. A Data Scientist in a corporate setting is just someone who solves problems using relevant data tools to get there. That's it. SWEs do the same thing but through pure coding. These tools can be analytics, stats, or more algorithmic solutions. We're not researchers in a phd environment. We're there to make money for the company with whatever tool is relevant to the problem at hand. ML is one solution to a problem, not the solution to every problem. I've spoken to many friends and colleagues who are data science managers, and this misconception is the very concern they have for those entering the data science field.

2

u/[deleted] Feb 17 '21

I’m not saying math or stats is easy to learn. I’m saying data science doesn’t require advanced math or stats. DS only requires basic math and stats, and that basic math and stats is easy to learn.

1

u/[deleted] Feb 17 '21

Hm.. I feel like for entry level, you don't need advanced stats or coding. For expert level, maybe, like Research Scientist position. But I suppose it depends also on what level of specialization you want to get into. For experimentation, if you don't know all the ins and outs of different forms of experimental stats, your results will have negative effects on the bottom line of company.

Overall, I think data science is the creative result that comes out when you merge stats with code. When you get skewed to one direction or another is when you can get no results or mis-interpreted results with data science. It's the precise reason why many companies can't get value from the field.

To return to the original topic, this is why I think the best data science interview questions are ones that ask you stats and coding simultaneously. So like simulating bayes/expected values/binomial results/markov principles/etc. using while loops/hash/etc. Not only is this relevant to the actual job at hand, but gets at the true nature of data science, not this "DS is just another subfield of CS"