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/proverbialbunny Feb 16 '21

Have you been on /r/statistics? While tension between stats and DS have been softening in the recent years, there is still a complex. DS is applied stats and most kinds of stats majors don't like the applied side so they go do biostats type work and similar. Some do end up as analysts though, and fewer end up migrating from analyst to data scientist, but there is definitely tension between the two fields.

Applied math often leads to AI and SWE type work. While I don't know the whole story there, there are not many data scientists with a math degree.

Data science is about pouring over data, cleaning it, analyzing it, feature engineering, and then maybe you might slap some ML on at the end of the day. Biologists not only do the same thing (collect data, clean it, analyze it, report on it), but there are little to no biology type jobs out there, so where else are they going to flock to?

1

u/[deleted] Feb 16 '21

Biology DS are probably bioinformatics, since that field values their domain knowledge. Sometimes the title may be interchangeable though in some places its called Bioinfo-DS.

Yea I have been on r/statistics and I am on the camp that thinks ML is statistics. I learned ML in a statistics department without ever touching data structures/algs and general CS. Some CS people are really surprised that one can do ML without it. These same people also overthink languages like R which leads to the notion of “R is trash and so difficult” but honestly R is a great example of how these concepts are not necessary to do ML.

Its almost like 2 entirely separate fields nowadats statistical ML and then this ML eng stuff (which I was never interested in, I want to do the former but like its really hard to do that in industry without facing these leetcode problems since most higher ups come from CS not stats).

1

u/proverbialbunny Feb 16 '21

Biology DS are probably bioinformatics, since that field values their domain knowledge. Sometimes the title may be interchangeable though in some places its called Bioinfo-DS.

I don't know. In my experience a lot of the data scientists I've hired have had biology degrees. No bioinfo that I've personally seen, though anecdotal.

1

u/Mehdi2277 Feb 17 '21

It's not about hire ups background but business relevance. I've interviewed with managers for ml roles that did not have a cs background but instead something like physics. It's still coding heavy just due to the typical work task nature. If you truly want managers with a stats background you can find a lot of them at finance companies. You'll still see a lot of leetcode over there too.

Amusingly I think math/stats heavy places have the hardest leetcode questions as those people tend to view leetcode like puzzles.

1

u/[deleted] Feb 17 '21

Yea even biostats positions these days in industry are starting to have this stuff. I was tested on easy leetcode ish problems (they were still tough for me though) for my current role and it was a shocker cuz I expected statistical programming. I was lucky to get through it since I was strong at the prob/stat and the few stat programming questions and at least didn’t completely bomb the coding relatively to others (but of course, when the other candidates are biostat/epi people the bar is lower for it lol). But against average DS it is harder to compete for sure.

Im thinking of checking this out https://www.manning.com/books/advanced-algorithms-and-data-structures?utm_source=freecontentcenter&utm_medium=website&utm_campaign=book_algorithmsanddatastructuresinaction&utm_content=article_03 and trying to implement some of it in Python/Julia.

1

u/Mehdi2277 Feb 17 '21

If you like books this is a really readable one for algorithms, https://www.algorist.com/. Book comes with slides/lectures from the creator too. Yours maybe good too, just unfamiliar with. CLRS is a classic commonly used and I've read a decent bit, but it's boring dense read.