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

18

u/[deleted] Feb 15 '21

Hey man that's great, but this position I was referring to is a Data Scientist in an ML role. Nothing related to sales.

Furthermore, I checked that they have the same technical challenge for their SWEs. This proves my point. This shows that their testing standard is legacy and archaic, since interviewers used to do this many years ago when a standardized interview process was not set in place for DS roles.

And even if it was related to sales funneling/market attribution modeling, you want to ask candidates generic knowledge pertaining to data science, not a specialized algorithm. The idea is that you want to test their foundations to measure their general aptitude and intelligence.

But I take your point

0

u/[deleted] Feb 16 '21

[deleted]

11

u/[deleted] Feb 16 '21

Yes, I think there is justification, and that's what I mean by hashmaps, pointers, etc. are fine. My question is at what point does it become unjustifiable? If the question is challenging to even seasoned SWEs is it still justifiable? Does it make sense to give challenges originally meant for SWEs to DS people and expect that to be okay? How about if the situation was reversed? What if I started asking about p-values or how LSTMs are different from GRUs to SWEs, is that okay?

5

u/MrFlamingQueen Feb 16 '21

It's wild you are getting downvoted when you are right. These things would never be expected in the reverse situation, yet some companies expect DS to be experts in all areas (not T shaped, but box shaped)

4

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

oh yea it's hilarious. I just woke up and all my comments are in the positive now. This whole situation has been childish and I'm really surprised it's working professionals who are doing this. Honestly whether or not I'm right, just show me some respect, jesus. This isn't twitter

0

u/[deleted] Feb 16 '21

[deleted]

0

u/[deleted] Feb 16 '21

[deleted]

4

u/MrBananaGrabber Feb 16 '21

yeah you don’t really see the term ‘statistical learning’ thrown around as much, but that’s definitely the way i approached this field. id guess it’s becoming more and more common as the academic toolkit starts to get extended beyond traditional statistical inference and leans further into the ML/nonparametric world. the textbook Computer Age Statistical Inference does a great illustrating the transformation that’s been happening.

it’s a shame that the different angles to ML inevitably pits CS folks against stats/econometrics folks (see: this thread), it’s wildly useful to have both specialties on a team

2

u/forbiscuit Feb 16 '21

And even if it was related to sales funneling/market attribution modeling, you want to ask candidates generic knowledge pertaining to data science, not a specialized algorithm. The idea is that you want to test their foundations to measure their general aptitude and intelligence.

How would you do so? The method they used is exactly present to measure general aptitude, intelligence, and recognizing whether the candidate has seen a similar problem before.

This is very similar to word problems in mathematics - the goal is to help individuals identify potential patterns in the problems and recognize that, despite their different context, they share a potential underlying solution.

Someone without sales funnel experience may be aware of a similar problem in a different context - so framing the problem in the most high level way possible is done via those algorithmic questions. The candidate could even say something along the lines of "I'm not proficient in coding, but in my experience, I've seen a problem similar to this where I resolved it by doing <something>"

4

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

As I said, test the fundamentals and what majority of data scientists go through, not some specialized knowledge that's only applicable to your company (although as I mentioned, my gripes with this company had nothing to do with sales). For instance, for my last company, I did research on clustering of contextual bandits.

Now I can ask you about that particular topic during interview process because that company might be interested in deploying that specific algorithm. But this is a highly specialized ML model, and it wouldn't make sense to ask about it to general applicants even if it's something that the company is working on. So you ask the fundamentals, like ML training, validation, etc.

But my overall point is that you shouldn't ask deep/hard SWE questions for data scientists, especially if it's not pertinent to the actual role. This sort of thing is a legacy system that was prevalent many years ago when software engineering practices was used to measure data science capabilities since DS didn't have a system of its own, and companies have generally dropped this approach. But there are still few that do this and drives me crazy.

Overall, I get what you're saying, I see your viewpoint. I'm more focusing on that general trend of SWE interviews being used for DS which is inappropriate in my opinion, more than specifically what your company may be working on.

As to why I think this is happening; it's because SWEs and Data Engineers have taken over ML executive/management positions, not statisticians (due to the rise of AutoML I think). This in turn has a strong software bias from managers. For instance, for an ML engineering position, the hiring manager was a DE and was asking me about CICD, when the job position had to do with stats. This is the type of inappropriate-ness I'm talking about

17

u/CaptainFoyle Feb 16 '21

Why shouldn't a company ask what's specifically applicable to them? That's what they're hiring someone for in the first place. They're not trying to gauge the average skill levels of data scientists, they're looking for a person for a specific job.

And keep in mind that party of their hiring strategy might be too see how applicants respond to their questions even if they don't know the perfect answer, or even how they approach the problem if they have no clue. That also gives you valuable information about the person applying.

2

u/[deleted] Feb 16 '21

This is besides the main point I'm making. Please refer to my edit and edit edit to not get distracted by side points and to just talk about main point.

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

→ More replies (0)

1

u/svpadd3 Feb 16 '21

Well to be a fair I think a lot of times people at a company don't have the best idea of what they actually need and the amount a person is able to learn on the job. This is why positions sometimes stay open for months and companies waste tons of money and time on recruiting, all while bemoaning how all the candidates are awful since none of them have ten years of experience, a PhD, and a can solve a Leetcode hard in 60 seconds.

-17

u/datasciencepro Feb 16 '21

If you don't like it don't apply. Leave the job for people who have some ambition and are willing to demonstrate their skills and who don't expect to walk into roles just because they're a data scientist.

0

u/[deleted] Feb 16 '21

[deleted]

2

u/datasciencepro Feb 16 '21

DS should expect it these days because the market is oversaturated. Doing leetcode is a scalable and reliable way for companies to weed out the bottom x%. The days of getting an MS in DS and having a few kaggle projects being enough to amaze companies have long gone.

People need to understand that leetcode is not a personal judgement on them, but is a consequence of the market. DS needs to relish the opportunity to do leetcode and rise to the challenge and demonstrate skills rather than shy away because of muh spheshal job title isn't SWE.