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

4

u/[deleted] Feb 16 '21

Because you're adding ML to a larger piece of software or whatever and it's simpler to just get a bunch of engineers to implement the inference from scratch? It's not that difficult (the training part is usually the hard part). It's what you're supposed to do to avoid dependency and integration hell. Or you want to try the new SOTA but the implementation is wrong/incomplete/you want to mess with it. Or a million other reasons.

And nobody said anything about implementations. We're talking about understanding the fundamental concepts behind what you're doing. You're probably using graphs every day and don't even realize it which made you write a comment as if graphs are not important.

1

u/veeeerain Feb 16 '21

Yeah, while that’s true I still think stats is needed for model selection, and that’s facts. Your model in production can be garbage if you don’t diagnose the problem and pick the right model for the job. It’s only after u pick the right model thay you can worry about the stuff ur mentioning regarding production.

3

u/[deleted] Feb 16 '21

What are you talking about?

0

u/veeeerain Feb 16 '21

I’m saying stats shouldn’t be ignored with regards to data science and machine learning

3

u/[deleted] Feb 16 '21

Nobody was saying anything different. Graph theory/network theory is math. Statistics is math. Computer science is math. It's all math.

1

u/veeeerain Feb 16 '21

Yeah ik it’s math but you can’t say it out weights statistics in a data science context. Your sentence above was that most things can be represented as graphs, I can say most things can be represented as a probability distribution. Still botj important with regards to how you quantify the business case and approach data science problems.

1

u/[deleted] Feb 16 '21

Most things can be represented in many ways and those representations will have their own benefits and weaknesses. The strength of graphs is that it's a great representation of connections between things. Most things in the world are connected with other things and those relationships between things are important. Graphs are pretty much one of the only ways to capture those connections in a reasonable manner.

Plenty of statistics uses graphs. Pretty much most of the interesting stuff is graphs.

4

u/veeeerain Feb 16 '21

So if you were doing time series forecasting and building a prophet model, are you representing this as a graph? Or going to focus on classical statistical methods like smoothing/ removing seasonality/stationarity ie. Quantifying this relationship with linear regression? Or maybe even some Bayesian methods?

Or are you using graphs?

Because one of them is relevant to the problem at hand and one of them isn’t. I think you may have some bias to say graphs are the only way.