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

113

u/CrwdsrcEntrepreneur Feb 16 '21

To be fair, Leetcode style questions have little to do with most of what SWEs do as well but they still interview each other using that format.

It's a broken system for sure but it's also not that hard to learn enough just to pass technical interviews.

48

u/[deleted] Feb 16 '21

Yea it's ridiculous people supporting leetcode here when even SWEs think it's total BS. Who are these supportive people??

8

u/mniejiki Feb 16 '21

Every SWE interview approach that provides decent signal has people hating it and pointing out how bad it is. In my experience leetcode has the least people hating it.

4

u/Urthor Feb 20 '21

Yeah this.

The amount of salt at 8-12 hour take home projects was/is FAR larger than 1h leetcode rounds.

→ More replies (1)

23

u/beginner_ Feb 16 '21

So true. Why do you need to know how to implement some obscure tree-search algorithm for a chess problem when all I will do is intranet web apps full of inane business rules?

The issues is that everyone is spineless nowadays. They all protect their own ass first and foremost. See if a candidate turns out bad you can show you did your due diligence with stupid brain teasers and quizzes. FAANG does it so it must be ok, right? Instead they should make way simpler tests and ask some more general "management type questions". I used to hate on them too but now I understand. Example: How many 1 liter bottles can fit into a jumbo jet? It's a stupid question but important is the thought process of the candidate. He needs to ask things (like when asking the users/stakeholders). Does he ask at all? And if what does he ask? The form of the bottles obviously matters. What also matters is the needed accuracy. Is an educated guess good enough? and so forth.

Actual real-world problem solving. Just calculating the volume of the jet using a function of the jets body shape and integral calculus might show your math/technical skills but if no questions are asked if this level of accuracy is even needed? On some level this also test for social skills.

9

u/[deleted] Feb 16 '21

Honestly I've been asked very good, thought provoking questions involving my own strengths that the interviewer learned from my resume. For instance, one was a question that required creative mixture of dictionary hashmaps, string parsing, and hidden markov model (thus a good combo of probability theory and CS fundamentals). Why HMM? It's because I did a side project on it and they saw my project. Solving this question brought new ways to further my own project and thinking about real world application of markov principles, and I was really excited by the new "aha" moments I had as I was talking with the interviewer.

Sadly these moments are very few and only asked by smaller companies. Majority of the time it's just boring SQL questions involving some rank functions or nested case statements.

11

u/CrwdsrcEntrepreneur Feb 16 '21

Even a boring SQL question is way more likely to be relevant to a DS' day-to-day tasks than "find the top view of a binary tree" or some other BS LC question where you'll never again use the algo needed to solve it.

2

u/[deleted] Feb 16 '21

It seems more like a case of "hey these people did it so I will too".

It's more a lack of creativity and/or overcompensation for risk (of a bad hire) than some kind of a joke, as the OP described.

4

u/[deleted] Feb 16 '21

Sometimes it's about intelligence and problem solving. I wouldn't expect anyone to remember algorithms from scratch, but I should be able to pose a problem and work together with a candidate to come up with a solution.

I honestly don't care if someone knows SQL or some other language. I care if someone is smart, can problem solve, and learn quickly.

5

u/proverbialbunny Feb 16 '21

I care if someone is smart, can problem solve, and learn quickly.

And that's what makes a software engineer a software engineer, so leetcode makes sense. Though, I'd question if it helps identifying good future employees and help weed out bad ones. Maybe software engineering shouldn't be about about problem solving quickly. Has anyone looked at the data?

On the data science side solving difficult problems takes months, not hours, and pushing someone reduces that necessary creative aspect. To go fast one must go slow. Pushing for speed is going to get you young inexperienced data scientists or desperate data scientists. This is why whiteboard problems are frowned upon for data science interviews.

9

u/CrwdsrcEntrepreneur Feb 16 '21 edited Feb 16 '21

I wouldn't expect anyone to remember algorithms from scratch

You're missing a large chunk of LC type questions then. If you expect to "work together and come up with a solution" in a 30 min interview with a person who has never seen a BFS or DP problem, you don't understand what we're talking about in this thread.

1

u/[deleted] Feb 16 '21

If they know BFS or DP, then cool, we'll talk about that. If they don't, it's interesting to discuss how one might approach it from first principals.

→ More replies (2)
→ More replies (3)

271

u/groggroggrog Feb 16 '21

I’m a software engineer who worked on a data science team for a while, and I have to say, the sheer amount of stuff someone with the title data scientist is expected to know is a bit overwhelming.

129

u/PHealthy Feb 16 '21

It's only programming, analytics, biostatistics, informatics, and database administration...

85

u/neurocean Feb 16 '21

And data engineering

77

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

And newest neural network frameworks. and visualization softwares. And sometimes SEO. And knowing how to communicate with clients. And running A/B test experiments. And knowing cloud ML infrastructure/ML Ops. And domain knowledge in our industry like which metrics the product pursues.

Oh you don't have one niched thing our company needs? Sorry the job goes to some other lucky applicant

29

u/proverbialbunny Feb 16 '21

and BI (dashboard software, sometimes front end development), and of course applied statistics.

And newest neural network frameworks.

Thankfully that's for big data only. Oh yah, and you need to know big data and all of the software revolving around it.

Oh and you need to know management skills, especially how to manage upward.

0

u/[deleted] Feb 16 '21

[deleted]

7

u/FrontElement Feb 16 '21

But not I note, pivot tables...

→ More replies (1)

4

u/PHealthy Feb 16 '21

I guess that's not really an often used term in public health, how does data engineering differ from informatics?

3

u/neurocean Feb 16 '21

Data Engineers can be like plumbers in big data systems but in many cases Data Scientists have to do that work too. Setting up data streaming, data acquisition, data cleaning, building the symantic layer etc etc.

18

u/memcpy94 Feb 16 '21

Nowadays, companies hiring data scientists also expect us to do devops. We are multiple engineering teams now.

I think companies just do that to save money on hiring a big team of data analysts/engineers, software engineers, devops engineers, and database admins.

8

u/pseudouser_ Feb 16 '21

Others talked about the other technical stuff but it gets even worse when the management considers you to be a "senior" employee (I am not).

I've been working as a mix of data scientist and ML Engineer for about 4 years. My experience mostly covers NLP problems and right now none of my teammates has experience with NLP and our projects are all about NLP for most parts. Because of that, as mentioned above, the management thinks that I am a senior employee. Now I have to keep up with what you said above and support the recruitment to expand our team as well as help out my colleagues so that they could gain experience in NLP as quick as possible. It's very exhausting.

10

u/[deleted] Feb 16 '21

Ask for more money. When that started happening to me I burned myself out waiting for a reward that never came.

8

u/pseudouser_ Feb 16 '21

Already asked for a raise and their response was "lol no". I've been looking for a job ever since but couldn't really find a decent one, yet.

7

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

Lol, yep sounds about right. Companies these days always want something for nothing all the while complaining about their employee pool: "We just can't get good talent!" --> Yeah, at the price you're paying you won't keep it for long.

I stuck around for two years too long when that happened and it wasn't worth it. Sometimes they dangle the carrot: "Well if you deliver results, then in one year we will see what we can do".

It's almost always complete bullshit. Companies care more about ongoing costs than anything due to the way the MBA voodoo sticks a value on a companies. Committing to 20k extra a year for the future makes them cringe more than spending 100k one time on a banquet or trip for the employees, even if it all nets out the same.

I'm not going to work harder and harder each passing month for the same pay ever again. It's a recipe to become resentful and burned out, or rather, simply miserable watching your productivity and mental health slowly decline.

4

u/pseudouser_ Feb 16 '21

Sometimes they dangle the carrot: "Well if you deliver results, then in one year we will see what we can do".

They basically offered me a lead position instead 2 weeks after my request and I immediately rejected because that would be suicide in this company due to the insane amount of weird and unnecessary management related tasks you have to deal with as a team/project leader.

4

u/MyNotWittyHandle Feb 16 '21

Two things:

  1. Saying that asking Data Scientists Leetcode questions is “completely disrespectful” is a little high and mighty, don’t you think? “Not productive”, maybe/probably. Completely disrespectful? Nope.

  2. Those questions are meant to assess fluid intelligence. Not saying they are perfect by any means, and I don’t use them myself when interviewing because I prefer other ways of assessing fluid intelligence. But, I can understand why some places may use them. For example, there are many data scientists who can speak in exceptional detail about the things they know well. That’s great. However, when faced with new problems, with no clear analog in their experience, many stumble pretty significantly. If a given employer overweights high fluid intelligence over the ability to speak about things the candidate already knows, then leetcode-style questions (or ones like them) aren’t a bad choice, as long as they only make up part of the assessment.

4

u/[deleted] Feb 16 '21

yea you can measure fluid intelligence by changing existing problems like on a three sum. Or adding stats or probabilities on a string search function that uses hashmaps. That's reasonable, and it's within bounds of data science. Asking algorithmic island questions where you need to work with inheritance, dynamic programming, DFS, etc. is not "fluid intelligence" assessment in the slightest. It's funny that every criticism of my post has never considered how stats+coding might be more relevant for data scientists than pure high end coding. It's like they've never even considered this possibility before.

Btw, most companies know this, so most don't do those memorization algorithm questions. It's basic common sense for them too. But few do, and that's what I brought it up

42

u/[deleted] Feb 16 '21

I've worked in data science for over 10 years and I've never written an SQL statement. I did use a little bit of ORM to interact with a database, but I didn't write the SQL myself. Everywhere I've ever worked at we used NoSQL, Hadoop, Spark, Kafka etc.

I don't use a lot of pandas either. I mainly use spark through Scala to build data pipelines. I've contributed pull requests to pandas back in the day, but if you asked me random trivia I wouldn't be able to answer it because it's not something I use on a daily basis. Doesn't mean I wouldn't be able to relearn it. I've also done quite a lot of database work, just not with SQL. I'm perfectly familiar with relational models and how SQL works and would be fully capable of learning it. It's just not something I need so I don't bother.

Why do you need the skills that make you good at leetcode in your job? Because you need to be able to look at the problem and tell me what kind of a problem it is and what do you need to solve it. And you need to have sufficient skills to look at a solution you wrote (or someone else wrote) and critically evaluate and determine if you can do better.

Most natural phenomenon can be represented as a graph. It can be bus stops, it can be customers, it can be girls running away from boarding school (ever heard of social network analysis?), it can be packets going around the internet, it can be anything really. And knowing how graphs work is super useful.

I am convinced that people that complain about leetcode are simply incompetent, feel very self-conscious about it and are precisely the people that should do a data structures & algorithms course.

The simplest example I can think of that most data scientists fail in an interview is the Stones and Jewels or to be more precise, the variation where you give the counts for each jewel.

A large portion of data scientists I give this problem to fail to complete the task in the allocated timeframe (30 minutes). They try to start to install numpy and pandas and spend 30 minutes googling/browsing pandas documentation to see if there is a function that does something like this and maybe try to parse the data somehow.

A small portion of data scientists are competent enough to understand what is asked of them and write a loop:

count = 0
for s in S:
    if s in J:
        count += 1
return count

My follow up question is when I hand them a gigabyte of data. Almost everyone fails to handle it in a reasonable way even after giving them hints about data structures and time complexity.

A tiny majority will recognize the algorithmic complexities of data structures involved. Lookup over a string is not great in terms of time complexity. How about using a data structure that uses hashes instead?

What would you really use this type of thing for? I'd say that counting things is pretty important in data science. I've never seen perfectly cleaned data in the real world and for example counting the frequency of something as a feature comes up quite frequently.

I've seen it before. Someone complains that the server with 128GB of memory and 24 CPU cores is "too slow" and they "need a bigger machine or even a cluster". Turns out they wanted to load the data into pandas first and then try to engineer some features out of it. Replace that pandas monstrosity with ~10 lines of vanilla python and you can handle the dataset on 1 cpu core and 512MB of memory. This is just basic data cleaning/preprocessing stuff.

If anything, I'd argue SWE's don't need leetcode because most of them won't work at Google and won't deal with large amounts of data. No need for leetcode for someone doing CRUD and the largest n they see is like 100 things to display on a web page. Data scientists by default deal with large amounts of data and leetcode is super duper important because as n goes up, everything goes to shit if you don't think about complexities. You need leetcode as a data scientist.

I find that most companies really struggle with getting actual benefit out of their data science teams precisely because they hire a bunch of statisticians and mathematicians and don't pay attention that this ain't an academic curiosity anymore. It's the real world with real world problems like limited resources and wanting results in 20 seconds, not 20 hours. For example in the real world you're probably generating data at a steady pace and if you can't keep up with it, you're in trouble. A lot of people get away with throwing more computational resources at it, but then they have to justify to the bean counters

Shipping linear regression that took you $1000 in man-hours to develop into production on a $20/month instance is better than having a state-of-the-art model that took you $100 000 in man-hours only works on your laptop and will require another $250 000 to even have a chance of running in production. It's going to be a lot harder to break even.

Now, full disclosure. I used to teach computer science and math to undergrads and high school kids during grad school. Leetcode problems are toy problems designed to explore concepts in a fun way. They're like the worded problems where John had 200 watermelons and Jane had 2000 watermelons. They're not supposed to be "real world" and they're elementary by design (as in you don't need any background knowledge to solve them).

I don't recommend "real world problems" to weed out candidates because it's basically pure luck if someone has the exact knowledge required. I for example didn't work with SQL during my career and if all you did was ask me SQL questions you'd weed me out. Never mind that I created fully custom data warehouses for a living for big data from scratch because back then we didn't have so many options. It just wasn't with SQL.

13

u/[deleted] Feb 16 '21

the server

Sir with all due respect, I just solved that problem on leetcode using a hash in less than 2 minutes. I specifically didn't look into your solution and dove right in to measure my competence (faster than 89% of all submissions). Another way you can try solving this is sorting the two strings and then using a two pointers to guide through the sorted string. This wouldn't use any extra space complexity, but would result in O(2 * nlogn) in runtime. You'd also get into lots of edge cases if you don't get the logic right.

If people can't solve this simple problem, then yes, it's clear as day that you should not pass them along. And I'm sorry that this is a big chunk of people you've interviewed. The types of questions I was referring to is this: https://leetcode.com/problems/minimum-knight-moves/ or any of those island questions where you have a grid and you need to move pieces in a certain way using recursions and helper functions.

Also, it seems to be the case that you've been focused on Data Engineering in your career. Pandas isn't used for data pipelining but for data munging, feature engineering, etc. that's crucial for ML process. It's also good for data visualization, such as crosstabs, etc. Also, most companies I've seen don't use NoSQL, even medical data companies that gather disparate forms of diverse data into one mega database.

3

u/Kengaro Feb 16 '21 edited Feb 16 '21

Another way you can try solving this is sorting the two strings and then using a two pointers to guide through the sorted string.

Why would you use 2 pointers? That is like hunting birds with a sword...

1

u/[deleted] Feb 16 '21

No not really. I just solved it using two pointers on leetcode as well. So if you work with strings and pointers, it's really tough. But if you convert char in jewels/stones into ascii value, it becomes a simple "find common element in two sorted arrays" problem.

def solution(jewels, stones):
    
    jewels = [ord(i) for i in sorted(jewels)]
    stones = [ord(i) for i in sorted(stones)]
 
    i = 0
    j = 0
    count = 0

    
    while j < len(stones) and i < len(jewels):
        if stones[j] < jewels[i]:
            j+=1
        
        elif stones[j] == jewels[i]:
            count+=1
            j+=1
        
        elif stones[j] > jewels[i]:
            i+=1
              
    return count

It's super slow, as you can expect, but it works, and no extra space (if you don't count the transformed jewels/stone arrays).

1

u/Kengaro Feb 16 '21

Yea, converting char to ascii/int works, still not really a problem for using 2 pointers.

1

u/[deleted] Feb 16 '21

That's not true. What if I said solve the Jewels problem without any extra space? In other words, no hashmaps/lookup table? What would you do then

→ More replies (6)

5

u/[deleted] Feb 16 '21

Why would you want O(nlogn) when you can just do O(n)? Looking up using hashes (such as with a set) is O(1) and iterating over a list is O(n). This is very basic DS&A knowledge and understanding what you're doing is important to solve problems.

I am well aware what pandas is used for considering I contributed to the project quite a bit a few years ago. I simply haven't used it recently because the data I work isn't a good fit for pandas due to the size and the fact that it's not just rows and columns. If you asked me pandas trivia, I'd fail the interview because that's not something I use on a daily basis.

10

u/[deleted] Feb 16 '21

Because to do O(n) using hashes you need extra space complexity O(n). By doing O(nlogn) you're sacrificing runtime for no extra space. One basic principle of SWE is tradeoff between these two and what makes sense to use given problem at hand. There are times when interviewers specifically ask for no extra space. Usually those require O(n) runtime using some fancy algorithm you had to memorize. I've found that O(nlogn) using pointers after sorting can work in many situations when you don't memorize those algorithms. Good and understanding interviewers also realize this and usually ask you to solve in O(nlogn) after sorting and using one or two pointers using while loops or recursions

→ More replies (7)

7

u/LallyMonkey Feb 16 '21

I have a hard time believing that a large portion of DS you interview can't get to a basic solution for that problem. I'm not calling you a liar, I'm actually having a hard time comprehending that someone wouldn't be able to tackle something like that. I consider myself pretty mediocre at everything, and I still came up with a solution in a couple minutes.

stone_count = dict()
for x in stones:
    if x in stone_count.keys():
        stone_count[x] += 1
    else:
        stone_count[x] = 1
total = 0
for x in jewels:
    if x in stone_count.key():
        total += stone_count[x]
return total

2

u/recovering_physicist Feb 16 '21

Look up defaultdict , it negates the need for your if-else loop

1

u/backtickbot Feb 16 '21

Fixed formatting.

Hello, LallyMonkey: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

6

u/TheNoobtologist Feb 16 '21

I just did the jewels and stones problem and now I’m patting myself on the back 😌

2

u/[deleted] Feb 16 '21

Yup. That's what people are complaining about. Most leetcode problems companies are asking are not much more complicated than that. Sure there are some managers on a high horse that demand ludicrous shit but the overwhelming majority is stuff you learn during the first 2 weeks of a DS&A course.

1

u/Kengaro Feb 17 '21

I raise a three sum problem...

3

u/GunsnOil Feb 16 '21 edited Feb 16 '21

As an entry level data scientist working to get better, thank you so much for this. I’m actually taking a CS course now and plan to dive into SWE next. I think it’s absolutely relevant to understand CS and you explained it so well. I have a code running for the past few days on 16 cores and I bet I’m doing something idiotic with how I’m handling the data. Gotta keep learning!

I also agree about all of the complainers. Why did you get into programming if you get triggered by solving programming problems? Like what? My background is in physics but I’ve always enjoyed solving complex problems computationally and while some of these leetcode problems can be challenging, it really does sharpen your problem solving skill set. There seems to be many fakers in DS who aspire to be scientific, but make the silliest inferences or are not up to the challenge of problem solving.

3

u/beginner_ Feb 16 '21

I've worked in data science for over 10 years and I've never written an SQL statement. I did use a little bit of ORM to interact with a database, but I didn't write the SQL myself. Everywhere I've ever worked at we used NoSQL, Hadoop, Spark, Kafka etc.

That's in your specific role and industry. For me it's the opposite. Only RDBMS and no NoSQL or Spark.

Data scientists by default deal with large amounts of data and leetcode is super duper important because as n goes up, everything goes to shit if you don't think about complexities. You need leetcode as a data scientist.

Again, only true for your role. Very short sighted. Of course you only have big data because else you won't use Spark or Kafka. For me it's exactly the opposite. I work with measured data and many of said measurements mean human subjects needing to perform a task. Other measurements take months to run and can only be parallelized to a limited degree (cost of equipment, space and operators). So any type of data sub 10k of rows and hence performance or time-complexity doesn't really matter.

I don't recommend "real world problems" to weed out candidates because it's basically pure luck if someone has the exact knowledge required. I for example didn't work with SQL during my career and if all you did was ask me SQL questions you'd weed me out. Never mind that I created fully custom data warehouses for a living for big data from scratch because back then we didn't have so many options. It just wasn't with SQL.

Yes, you would get weeded out in that case and if the role requires SQL, then it was the right thing to ask and the right conclusion. Your Spark knowledge is irrelevant if I want you to build a RDBMS data warehouse. The actual problem here is that SQL wasn't listed as requirement in their Job description or you applied nonetheless but then you can't really complain about the SQL questions.

Actually the far bigger problems is not investing in employees and hiring by current skills and not by ability to learn new things or relearn old stuff and transfer knowledge. So yeah given your experience you would probably deserve a chance. But you fall in the same trap. If your applicant fails your "big data" test you weed the out without even considering they could learn. Maybe they didn't need to learn as of yet, like I did not need to.

1

u/[deleted] Feb 16 '21

My tests are not big data tests. Those questions are relevant even for small n.

For example if you had 100 stones and 100 jewels and you had a bad implementation of counting them, you'd end up with O(m * n) which is 10 000 operations. As opposed to using a hash table to store the jewel counts which leads to O(n) so 100 operations.

It's a 100x faster algorithm even with "small" n/m of 100.

If you took a DS&A course, you'd understand that because this algorithmic complexity thinking is basically the only thing they want you to learn there. If your complexity is wrong, you're going to have a bad time. There is no excuse to not be able to answer simple leetcode questions. Do you know what a dictionary is? Do you know what a list is? Do you know what a queue is? Do you know that you could store values you already computed in a dictionary and read them again later instead of recomputing? Congratulations you can now do most leetcode problems.

That is not a lot to ask. This is fundamental stuff.

2

u/beginner_ Feb 16 '21

For example if you had 100 stones and 100 jewels and you had a bad implementation of counting them, you'd end up with O(m * n) which is 10 000 operations.

Which is at most a couple milliseconds on a modern CPU. Yeah it doesn't scale but if it takes me 5 min to build and 5ms to run it's still faster than 1h to build and 100ns to run. Hyperbole yes but pure execution performance isn't the only thing that matters. Besides development speed, code readability matters too.

If you know it's one-off code or you never will have to really scale behind a couple thousands rows why bother with a perfect algorithm? premature optimization.

I could argue if you have really big data, your hashtable wont fit in memory. What do you do then? You assumed it fits which probably is true for any reasonable case so why bother with a solution that doesn't fit? I assume I never have large amount of data so why invest time for perfect time complexity?

Having said that I never really dealt with leetcode so no idea what level the questions are. Ok, if they are on the stone jewels or fizzbuzz level makes sense to weed out the worst of the worst but DFS implementations or brain teasers is something else entirely.

→ More replies (6)

2

u/[deleted] Feb 16 '21

I just did this problem, was pretty easy to do the naive solution even from a stat background with no CS but I am curious how would dicts/hashing even come in here? You have to iterate over the string no matter what to count the number of times something is contained in the Jewels. You could store the # of times for each Jewel in a dict but otherwise I don’t see where it comes in because even here its still O(n) to iterate the string

2

u/spyke252 Feb 16 '21

It's O(m * n) if you iterate through the jewels string every time you want to check a stone. If the two strings are both large, this is similar to O( n2 ) :-)

2

u/[deleted] Feb 16 '21

I only had 1 explicit loop in my implementation because I used “in” within Python, is that checking each 1 at a time or as a set? I thought it was the latter

→ More replies (6)

3

u/mhwalker Feb 16 '21

I find that most companies really struggle with getting actual benefit out of their data science teams precisely because they hire a bunch of statisticians and mathematicians and don't pay attention that this ain't an academic curiosity anymore.

I think that companies who have realized this is an issue are the ones that are asking prospective ML hires to solve leetcode problems.

Another thing that I've said here many times is that learning how to do leetcode is one of the best ROI skills you can learn in terms of opening up new opportunities for yourself and making a lot more money. Solving leetcode problems is something that is much easier to learn than a lot of data science skills and easily hackable (i.e. just practice on leetcode). Realistically, 10ish algorithms/data structures gets you through 95% of all leetcode problems.

3

u/veeeerain Feb 16 '21

I’d argue statistics models real life problems more than graphs.

4

u/[deleted] Feb 16 '21

What if I told you that a lot of statistics models are graphs and the methods they use are graph based?

Ever used a random forest? Graphs all the way down.

7

u/veeeerain Feb 16 '21

Again, why the hell would you implement a random forest from scratch?

Oh yeah, ensemble learners like random forests? Use bootstrap aggregating (bagging) methods in their algorithms in order to function. statistics all the way down.

I know damn well you guys aren’t writing random forests from scratch.

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.

→ More replies (7)

1

u/proverbialbunny Feb 16 '21

It's a fun leetcode problem. I get optimizing is a necessity. I've had to do it, but these days it is so rare to need to do it, I'm surprised it is something considered interview worthy. Likewise, when I need to optimize, I really need to writing a library in C or C++ for Python or R, as speed is more important than ram once trained.

The reason optimization is rare today is because we have big data libraries that do this for us. If our dataset is large enough doing cleaning and feature engineering runs out of ram especially on 128gb of ram machine, doing ram saving optimizations (that tend to have a longer runtime in Python and R) is a bandaid. You can temporarily do it the old fashioned way and move on, but it may (and usually will) cost on the cloud side after the model has been trained. At that point you might want to consider using tools designed for this situation like data bricks. (Ofc I haven't seen your dataset and exactly what people are doing running out of so much ram, so I have to guess here. Maybe they are being unusually absurd.)

1

u/[deleted] Feb 16 '21

Let's say you have 100 stones and 100 jewels that you need counts for. If you use an improper algorithm & data structure (for example looping over every stone and then looping over every jewel) you end up with O(m * n) operations. In our case 10 000.

If you use a proper data structure, you can do it in O(n) so 100 operations.

100 << 10 000. It's a 100x speedup.

Now consider you had 100 000 stones and 10 000 jewels. Your "bad" algorithm is 1 000 000 000 operations. One billion. If you used a proper version, it's only 100 000 operations.

It's a 10 000x speedup.

These type of decisions come up in your daily coding. It's not about optimizing, it's about being able to look at a piece of code and tell me where there are potential problems and how could you approach fixing them. If you don't recognize problems and have no idea about approaching to fix them, then you'll never be able to fix them.

So you end up with not doing whatever you were doing and let's hope it was not a critical task and the project doesn't fail.

1

u/proverbialbunny Feb 16 '21

These type of decisions come up in your daily coding.

Only if you're not using the proper tools the ecosystem has provided for you. It does the optimal approach for you.

Like I said, I've had to write libraries before in the early days when such functionality wasn't supported. I get it. But it's not 2010 any more.

If your datasets are large enough, have you considered using https://databricks.com/ ?

→ More replies (2)

0

u/[deleted] Feb 16 '21

[deleted]

25

u/[deleted] Feb 16 '21

The person who made this comment represents the exact kind of toxic/elitist snob you’ll find over at r/cscareerquestions. They act like this to scare people away from the field so there’s less competition.

3

u/proverbialbunny Feb 16 '21

He's not saying he's working at a FAANG making X money, which is elitist. He's making a argument from his first hand experience, and it's a valid argument. I don't think it represents the larger industry, but there is nothing elitist about it, or at least by definition of the word.

→ More replies (2)

0

u/[deleted] Feb 16 '21

[deleted]

5

u/Citizen_of_Danksburg Feb 16 '21

We generally look for people who can ask and answer interesting questions of data, but give them both high-quality data sources and tons of computational resources, so the cleaning and efficiency aspects are very much secondary considerations at the current stage of maturity.

I graduate in May with my master's in stats and am currently applying for jobs and I got to say, companies that don't do this really are doing themselves a disservice. I have an interview later today for a job in finance but it's a real estate private equity place. All the people seem really nice and like a great group to work with, but I would be their lone stats/data guy and that really doesn't sit well with me. Not only do I have to be their data engineer, I also have to be their data analyst, and data scientist. My undergrad is in math and stats. I know R, SAS, Matlab, and I've been picking up on some Python, and I did a little LinkedIn learning course for SQL since I've never seen it in school, but working 55-70 hours a week for $65k and being in charge of setting up their data infrastructure and computing infrastructure, and then probably be in charge of future hires, it just sounds like too much and makes me nervous.

I definitely wouldn't have access to high-quality data sources, there would be 0 computational resources, so I'd be spending even more than normal amounts of time cleaning data just to do some simple analysis.

I just wanted to say thanks for doing what you guys do. I'm sure it's wonderful to work there!

→ More replies (12)

0

u/[deleted] Feb 16 '21

[deleted]

4

u/proverbialbunny Feb 16 '21

I'm genuinely curious what the ratio is of bad coders to competent coders.

As of 2020 data scientists with a computer science degree has bubbled up to 21%. While this isn't a direct answer, we can make some speculation on it. The remaining degrees (outside of having a data science degree) are non programming degrees. The #1 degree held by data scientists is biology.

2

u/[deleted] Feb 16 '21

The idea behind leetcode questions is that you do not require any specialized knowledge. Leetcode knowledge applies every time you open up a code editor and start reading code or writing code. Doesn't matter what the language is, doesn't matter what you're doing, what your job title is etc.

It is the best creation ever because the "leetcode grind" is the single simplest thing you can do to become better in everything you'll do that relates to code.

Someone that can mange to solve leetcode questions will never be a "bad coder". They are not guaranteed to be a good coder, but it guarantees that they are at least not faking it and know the concepts and how to apply them.

Lack of technical ability is a real thing. I've seen people get hired to do data science and they can't even write a loop. Tasks end up not getting done and projects end up failing. Mix it with non-technical management and you've got a horror story of how "data science is useless".

To me personally, if you're a data scientist you need to be able to grasp the concept of algorithmic complexity. Not just memorize the definition, but to be able to apply it and know where the problems are when you see a piece of code and how to fix them.

You will not be reinventing the wheel every time you write code. You'll use a library. But you need to understand the basic concepts of how it works to be able to apply it correctly. You can equally use R or pandas and end up with horrible time (or space) complexity and not know that you've fucked up or how to begin to solve the problem. Happens all the time and it can kill projects if there is nobody there to catch it.

If you do not understand how to solve stones & jewels (or the one with counts for each jewel), you are not ready to be a data scientist at the company I work at. It's a VERY low bar and most applicants don't pass it.

8

u/recovering_physicist Feb 16 '21 edited Feb 16 '21

And actually while I'm still here I went ahead and clicked through to the leetcode - are you saying that most applicants couldn't rattle off something like this?

def solution(stones, jewels):
    jset = set(jewels)
    return sum([stone in jset for stone in stones])
→ More replies (2)

4

u/Admiral_Wen Feb 16 '21

The idea behind leetcode questions is that you do not require any specialized knowledge.

Really? I admit that the jewels and stones problem you mentioned doesn't require specialized knowledge. But beyond easy problems it seems like a lot does. For example, Unique Paths II is a dynamic programming problem, and Unique Paths III is a Hamiltonian paths problem which uses DFS. These are the topics that the OP mentioned and was criticizing. Is this not specialized knowledge?

→ More replies (3)

1

u/recovering_physicist Feb 16 '21

If you do not understand how to solve stones & jewels (or the one with counts for each jewel), you are not ready to be a data scientist at the company I work at.

Further to my reply to your other comment, while I've never studied DS&A or SWE in any formal way, I did the first 11 problems on Project Euler with good efficiency before getting stuck on the Highly divisible triangular number...leetcode looks somewhat less brutal, at least.

0

u/[deleted] Feb 16 '21

[deleted]

→ More replies (1)

21

u/forbiscuit Feb 15 '21 edited Feb 16 '21

I would say this all depends on the team and responsibilities present. Maybe the team you applied to requires this knowledge.

You suggested that "But graph theories, DFS with trees/dynamic programming has nothing to do with data analytics, ML fundamentals, statistical foundations, and data storytelling competence."

But I disagree

Graph theories and path algorithms are important to understand flow of users in our sales funnel; especially when there are so many entry points and layers in our website where the ultimate end is 'Thank you for ordering' page.

A common question in our team is:

Is the path page A-B-C-D-E best? Or C-D-E? Or A-B-D-E?

Of course, this is a very simplified example. The complexity increases when you take into account 'traffic source' to those pages (Search Engine customers have greater intent in purchasing vs. campaign users, so how can you best merchandise for them given the path they take to increase their chances of purchasing something?) or device type or network connectivity, etc.

Knowing how to transform row based data into a meaningful trees, being able to validate those trees, and then running path analysis to investigate the best combination AND sequence of pages that lead to a positive purchasing experience is important for us.

Initially, those subjects seemed intimidating for me, but we're so lucky to be alive the YouTube era where you can study all those algorithms from some of the best teachers in the world. For me, I gained the most out of the following YouTube channel when studying algorithms: https://www.youtube.com/channel/UCZCFT11CWBi3MHNlGf019nw

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

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.

→ More replies (6)
→ More replies (1)
→ More replies (10)

6

u/beginner_ Feb 16 '21

Graph theories and path algorithms are important to understand flow of users in our sales funnel; especially when there are so many entry points and layers in our website where the ultimate end is 'Thank you for ordering' page.

A common question in our team is:

Is the path page A-B-C-D-E best? Or C-D-E? Or A-B-D-E?

That's why there are graph databases and graph libraries. Needing to sue one doesn't mean you need to be able to program one yourself. Not like you need to know how a car works and how to assemble it to be able to drive it.

25

u/gln09 Feb 16 '21

I don't know about this. Data scientists who can't integrate ML software products into another code base aren't incredibly useful in my opinion. If the company has this as part of their process they've thought it through and would expect the data scientist to be able to ship their product.

End of the day data scientists are software people who specialise in data.

12

u/[deleted] Feb 16 '21

No data scientists are not software people who specialize in data. That's the fundamental misconception of a data scientist, at least how it's used in Bay Area of California (where I work).

Usually the process was that Data Scientist would focus on research pertaining to which algorithms to select based on specific problems faced locally by the company, adjusting those algorithms, hyperparameter tuning, lift measurements, communicating those results to PMs and Engineers. ML engineers would help deploy those models, iterations, cloud architecture, etc.

But with the rise of AutoML, Data Scientists in ML have become an extremely rare and outdated position. On top of that, ML positions have been taken over by SWEs and DEs, not statisticians. You'd be hard to find a trained statistician who works in a DS+ML management role. This domination of the field by software people has given rise to perspective such as yours.

If you want to see my point, go on linkedin and look at Data Scientist jobs in the bay, majority of them have to do with product analytics. It's just so clear as day.

29

u/gln09 Feb 16 '21

For context, I used to be a senior data scientist. I think to have impact one must ship products. If the DS can't do that impact will be lower. In my opinion the rise of autoML is a reaction to a lot of money being spent on great statisticians who then don't deliver value.

9

u/chusmeria Feb 16 '21

You don't see AutoML as a natural outgrowth of programming-based problem solving and things like step-wise functions? That seems much more likely since this sort of thing has always been generated by researchers so they don't have to repeat their processes (their entire task is focused on optimization), and not businesses who can't figure out how to hire someone that produces value in a space. In my experience those types of organizations usually don't know why they need ML anyway and so just buy existing products that the 15-year SWE veteran who got promoted to DS can use (that 15-year SWE vet being the only DS person on their DS "team" that is highly advertised to clients). The company I'm speaking of has a .5 billion market cap and is an agglomeration of many software and marketing companies, but it's not like this is some sort of major outlier.

9

u/Fender6969 MS | Sr Data Scientist | Tech Feb 16 '21

I agree with portions of what your saying (as another DS based out of Bay Area). There is a very valid point that at the end of the day, what we deliver is code. More often than not this is how business uses our hard work etc.

Many companies may not have dedicated ML Engineers to do this. At my company due to COVID we couldn’t hire an ML Engineer. A Data Engineer is taking the lead on this and more deployment activities are getting handed to me. I do enjoy these activities too and I am taking it as an opportunity to learn.

Posted on here before, but some of the worst ML solutions I’ve ever seen was at our company and was done by a team of SWE. This culture of “our team are experts at PyTorch and DL” approach for every problem without understanding the data is incredibly concerning.

I see this a lot at work and I’ve been spending an increasing amount of time pushing back and advocating for understanding the problem and data first. For some reason, my company keeps hiring developers with no math/stats backgrounds for DS roles even at lead levels which is frustrating.

With that being said, I have been seeing that interviews are now predominantly leetcode based. Resulting from this, I am going to have to prepare for more leetcode focused interviews than math/stats focused. Not sure how I feel about that, but I’m looking for new roles and seems as if I don’t have much of a choice.

1

u/[deleted] Feb 17 '21

I personally agree with your coworkers that swe skills are more important than knowing math or stats for most tasks that data scientists are asked to do.

→ More replies (7)

1

u/[deleted] Feb 16 '21

Those tasks you listed (model selection, etc.) are the easy parts of DS. I feel like almost anyone can be trained to be competent at them in a month or so. Actually implementing them is the hard part.

Even if you’re doing cutting edge research developing new ml algorithms, I think the programming skills are way more useful than the statistics or math background.

And just so you know I’m not just saying that because I have a CS background. I have a PhD in mechanical engineering and spent 5 years working as a physicist before switching to DS. A few online classes was all it takes to get up to speed on the DS algorithms. Learning how to write code is a much more difficult and much more useful task.

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.

→ More replies (8)

2

u/proverbialbunny Feb 16 '21

I get smaller companies want/need employees to wear multiple hats, so it makes sense you want your data scientist to do some of the engineering work, but there is a better way. Today we can automate the productionization and deployment process, so the data scientist doesn't have to know the server stuff. They can give their notebooks to the engineers, give them a walk through, and then the engineers can put it directly into the servers importing the notebooks directly. All the engineers need to know is what functions to call within the notebook. Metaphorically it's like making a .h file for a notebook. In my notebooks, I make a single function to run it from the cloud, and it's the same function name in all of my notebooks to make it super easy for the engineers.

Today the people who take models and deploy them tend to be machine learning engineers at larger companies and data engineers / infrastructure engineers at smaller companies.

22

u/datasciencepro Feb 16 '21

Unless we received a BA or MA in computer science -- which majority if not most of us did not

What? Most of us have a CS background.

It really just feels like SWEs making fun of Data Scientists about how poor programmers we are.

Because a lot of them are poor programmers. People have seen what comes out of the bootcamps and they got spooked from working with them. So now they need to put up some hurdles to weed those types out.

WE AREN'T SWEs, and DS is not SWE

DS needs some of the fundamental SWE and CS skills to make their work organised, useful and industry standard. The fact that you're complaining about being expected to know these skills is kind of a red flag for the quality of DS you aspire to...

12

u/[deleted] Feb 16 '21

No most of us do not. I work in the Bay Area, know plenty of friends in FANG, Salesforce, reddit, etc., majority of them don't have CS background. You can probably do a hypothesis testing on this, and I'm sure it'll come in my favor considering countless data scientists I've met.

Now if you say majority of the hiring managers/execs in data science roles come from CS background, I'd say you're right.

There is a difference between fundamental SWE concepts (hashmaps, runtime, two pointers, recursions, etc.) vs. full on DFS-based dynamic programming requiring multiple functions that would even pose troubles for established engineers who haven't interviewed for a long time. My close friends are senior SWEs at places like Tesla, they agree.

But none of this has to do with my point. If you're just going to copy and paste questions asked for seasoned SWEs and give it to data scientists, that's disrespectful. That's my only point here.

13

u/datasciencepro Feb 16 '21

It's not disrespectful. DS is one of the most in demand careers (from the employee side), therefore the bar has to be higher. There are more people chasing each DS opening than each SWE opening. So how do companies differentiate? This is how leetcode arose in the first place, because SWE at the top companies was so damn competitive. Now it's just like that with DS. So most companies reasonably say, let's get a leetcoder who can do DS because that whittles down the applicant pool and it's useful (i.e. being a good coder is complementary to being a good DS).

It's not about 'disrespecting'. It's the fact that DS is oversaturated and companies are forced to up the game. The fact that you call it 'disrespecting' just shows that you are victimising yourself for having to do leetcode, when everyone already has to. You are the one disrespecting what companies have to deal with with all the crappy programmers calling themselves DS because of bootcamps.

11

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

Having to repeat myself is really annoying. I don't understand why I have to keep repeating the basic points. I don't mind leetcode. Period. I stated this multiple times and again in my edit. I'm saying that at certain point, when you ask hard level leetcode questions that require dynamic programming like island questions or some complicated search algorithm where you need to use some neat trick/memorization to get it, this is when it crosses the line because at that point it has little to do with data and science. Why do I have to keep saying that leetcode fundamental is fine? I said that hashmaps, pointers, recursions, etc. are fine. What did I get wrong?

And on your point of differentiation, there are many many other ways to differentiate candidates, whether that's complex pandas or SQL or something that Data Scientists use on a daily basis. If leetcode is fine, then why is not pandas and numpy? Such as creating simulations from scratch where you simulate expected value from binomial or bernoull's theorem, which would require knowledge of both stats, pandas, and coding? Do you see what I'm getting at?

1

u/Why_So_Sirius-Black Feb 16 '21

Hellos, do you mind if dm you some questions? I am senior stats major graduating this year but hoping to be a full fledged data scientist

4

u/Achrus Feb 16 '21

Thank you for this! I have a great respect for the SWEs I work with and aspire to be able to maintain a code base as well as they can. I entered the DS space with a background in mathematics and am a horrible coder.

What I don’t understand are the Data Scientists that say they know math so they don’t need SWE skills. In my experience, SWEs know more math than Data Scientists.

Graph theory? Your deep learning model is executed as a DAG. Your data pipeline? DAG. Knowledge bases? Not sure if it’s a DAG but they’re graphs. Topological Data Analysis? You gotta know graphs before learning simplicial complexes.

Treat machine learning as a compression algorithm or come up with a custom loss (that you didn’t find with grid search). You’ve just gotten into Information Theory. For that you need Stochastics and Real Analysis. I don’t know many of the fresh Data Scientists who have taken Real Analysis but I know many with CompSci degrees who are up to Info Theory.

Functional programming and Haskell requires Algebra, like real mathy algebra and not what they teach in HS. Algebra never clicked with me but functional programming is beautiful from a math perspective.

The thing is, Software Engineers have the math skills when Data Scientists don’t.

3

u/Why_So_Sirius-Black Feb 16 '21

Lol I have taken analysis. Proofs are hard but fun but like yo, wtf. That’s seems unfair to require such a deep rich mathematical background in addition to cs stuff. Oh well, I hope my math minor will cut it. Maybe I can look into doing a masters in comp sci online or something

→ More replies (1)

3

u/proverbialbunny Feb 16 '21

SWEs know more math than Data Scientists.

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?

1

u/Achrus Feb 16 '21

All of data science is applied statistics. Is statistics not being considered in this?

Statistics isn’t mathematics and is more like physics where all the tools come from math. Probability theory is math though and is often taught alongside stats.

However, machine learning engineers and quant researchers tend to know quite a bit more math than the average data scientist.

I actually found data science after failing all the interviews for quant programs haha. Apparently “the math is interesting” isn’t a good answer for why you want to get into finance.

The most common type of SWE is web dev, front end specifically.

That’s where my misunderstand is. When I think of a Software Engineer, I only consider the backend devs / network engineers. Front end devs are just developers from my perspective.

Knowing trees might help, but even graphs are a bit much. Though, maybe they help with setting up a database schema?

There’s some crazy algebra involved with database design. If you’re interested, I highly recommend going down the rabbit hole of relational algebra. Trees are just for indexing and searching.

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?

When I say SWEs know more math I just mean backend devs are better equipped in mathematical reasoning. I do agree though that data scientists have a larger mathematical toolbox.

Definitely enjoy the backend dev aspect a lot, I’m just not as good at it and the pay is better for DS right now. Perhaps data engineering in the future if I ever leave my current role.

→ More replies (3)

0

u/[deleted] Feb 16 '21

[deleted]

1

u/Achrus Feb 16 '21

I think the difference is in the type of mathematics but there isn’t a good word for it. Academically, MV calc, linalg, and diffeq are mathematics for engineering curriculum (like chemical / mechanical engineers). That is, data scientists are more studied in engineering maths while software engineers are more experienced with pure mathematics.

I only used Haskell as an example because of how crazy it is. R is great for functional stuff but then again deploying in R is a nightmare.

2

u/[deleted] Feb 16 '21

Statistics majors also don’t typically take discrete math and algorithms. Real analysis and upper div lin alg sometimes are needed for grad programs but still not anything to do with graphs. I actually dont know many CS that do Real Analysis

1

u/proverbialbunny Feb 16 '21

fwiw, in 2020 data scientists with a CS background jumped up significantly to 21%. The most common degree data scientists historically and still today hold is a degree (or three) in biology.

1

u/[deleted] Feb 16 '21

Really? What about stats/biostats/applied math etc? I would imagine this is a large chunk.

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?

→ More replies (5)

4

u/GunsnOil Feb 16 '21

You sure have an inflated sense of your self if you think it’s “disrespectful” for companies to ask you questions which test your knowledge of algorithms and data structures. And for a data scientist, you sure make some crazy inferences based off of your comments. We’re reading your ideas but downvoting because you sound like a combination of self-righteousness and foolishness. You do sound like you know a lot about data science but simultaneously you seem like you miss key points. If you’re frustrated in your job search, don’t start wishing data science was restricted to your own conception of it.

2

u/[deleted] Feb 16 '21

I'd be happy to reply once you respond to my actual points. Thanks!

115

u/CanYouPleaseChill Feb 16 '21

I’m not surprised most companies get little to no value from their data science efforts. I would argue casual inference and experimental design is more important and useful than predictive modelling in many cases, but nobody really cares or asks. Domain knowledge is also key so you know you’re solving the right problem. It’s a damn shame, as the view of data science has become very myopic these days.

30

u/MrBananaGrabber Feb 16 '21

i’d buy that argument 100%, there’s no getting around the fact that you can’t automate good observational or experimental research design. there is so much interesting work in academia on causal inference, yet i never see it as a point of emphasis in industry.

5

u/FlatProtrusion Feb 16 '21

If you don't mind, could you point me to where I can read more what you are talking about? Thanks.

11

u/agrabou2 Feb 16 '21

Not OP but my professor for causal inference has his book available online for free

6

u/lazyear Feb 16 '21

Thanks for the link. I read the first couple paragraphs and I'm hooked by his writing. That English degree paid off!

3

u/FlatProtrusion Feb 17 '21

Thanks I'll take a look =)

12

u/[deleted] Feb 16 '21

But is the kind of rigor required in business?

From my experience, if your analysis confirms intuition, people think "why do you jump through so many hoops for something we already know".

If your analysis doesn't confirm intuition, people will not buy it because "well, that doesn't make sense".

That's a very different experience from if you make a NN, which you have no idea what's inside. People think it's cutting edge black magic and you get praised for being a wizard.

8

u/lmericle MS | Research | Manufacturing Feb 16 '21

Don't feel bad, I'm in what is essentially a consulting firm acting as a machine learning satellite research lab and my boss still shoots down every single time I suggest to incorporate physical / domain-based modeling or notions of causal inference, instead favoring overly simplistic models with little to no explanatory power to meet myopic self-imposed deadlines for incremental (read: hopeless) updates to the client.

4

u/[deleted] Feb 16 '21

Totally agree, but just a short comment to say that I really like the expression "casual inference"! Username checks out :)

4

u/a_statistician Feb 16 '21

I would argue casual inference and experimental design is more important and useful than predictive modelling in many cases

This is probably the case in some industries, but others have little ability to actually run experiments on the things they care about (e.g. equipment maintenance, identifying bottlenecks) in a systematic way. These companies are not using the data they have, and could benefit from data science, but I think the problem is usually that the company isn't behind the evidence-based analysis of data. They're more interested in getting the data nerds to spit out the answer they already know they want to get.

12

u/veeeerain Feb 16 '21

It says DATA In the fucking role. Can you software engineers stay in your own fucking lanes for once and let the stats and math people live. Jesus Christ all I ever see is software engineers who got bored of their little back end and front web dev roles think “oh let’s try data science because I took ap stats in high school” and then come in and think they can run shit and shit on people for not knowing data structures and algorithms.

It’s you monkeys who just plug and chug random ml algorithms without knowing their statistical implications

Y’all be like “oh tabular data, let’s fit a neural network!”

25

u/[deleted] Feb 16 '21

Your words are bit strong, but I agree with you in spirit. What I see happening is that most ML exec/management positions have been taken over SWEs and Data Engineers, not statisticians or analytics people.

This is most prevalent in ML engineer roles, where the hiring manager is generally a DE or an SWE and wants basically a SWE with some ML experience or enthusiasm. I found this to be really strange during final interviews where I was asked CICD, data quality, etc. when the job descriptions had to do with stats, experimentation, model training, etc.

I think you hit that "plug and chug random ml algorithms" on the spot. What seems to be happening is that companies have realized that AutoML that can automatically train 100s of algorithm on the cloud basically beats Data Scientists doing manual training. So Data Scientists in ML are getting outdated by ML engineers building those systems.

But from my personal and professional experience, there are only so many problems where you can use AutoML. Each company faces problems uniquely and you can't just use black box models and existing feature interpretation and lift measurement to get answers to all the company's problems. But I don't know... maybe I'm missing something here

8

u/veeeerain Feb 16 '21

I 100% agree, it’s like these days no one cares for statistics or actual EDA, it’s just annoying because the industy thinks that ML is a computer science and swe sub field rather than statistics. And they gatekeeper anyone who can’t do leetcode hard. I swear outside of tech, the only other place I see me as a statistics student is to go to is quantitative finance, and I’m definitely not succumbing to that. And what else does this stuff in industry cause? People like me slogging to learn data engineering bexause that’s what I think will get me into data science vs my statistics knowledge and contemplating the fact that I’m wasting thousands of $$ on a degree I can’t even use. Black box methods are not interpretable, STATS based ones are. Clients understabd a linear model and have trust in it over some autoML or neural network.

The credibiliy of a swe to explain why a model is good is little to none. Because they don’t have any statistical story telling capabilities and don’t know how to quantify uncertainty.

This is what ticks me off and ur post is something that had to be said because it makes no sense to test DATA scientists on SWE concepts.

2

u/[deleted] Feb 16 '21

In biotech in particular I don’t think people will trust these “AutoML” solutions. They are just beginning to warm up to ML and I don’t think the FDA would look highly on a fully automated solution, since that means nobody got a “feel” for the data

3

u/[deleted] Feb 16 '21

I feel your pain.

A lot of research oriented data scientists could benefit with more engineeribn skills. HOWEVER, the data scientist is dependent on the company.

Specifically hire a machine learning engineer if you’re deploying models. Hire a data engineer if you’re automating and pipelining data tasks. Hire a data scientist if you need a combination of all. KEYWORD COMBINATION, not a fucking master.

1

u/veeeerain Feb 16 '21

LMFAO exactly

3

u/proverbialbunny Feb 16 '21

It’s you monkeys

Hey c'mon now. They have feelings too. Let's be civil.

4

u/veeeerain Feb 16 '21

Ik man I just get heated over such topics

24

u/hummus_homeboy Feb 15 '21

At least they're not using Project Euler problems!

28

u/bpgould Feb 16 '21

I was an applied math and cs major at a US top 25 school on full merit scholarship and cannot solve 75% of project Euler....

8

u/thecummaster3000 Feb 16 '21

nerdiness does not translate into cleverness

15

u/mliu420 Feb 16 '21

Here's some advice from my personal experience, "I can't give you an answer but I can prove one exists" is not sufficient for most interviewers.

4

u/Kengaro Feb 16 '21

I think this is already plenty tbh...

2

u/[deleted] Feb 16 '21

That's a good response IMO. Knowing that you can solve it is part of the task when you are deciding where to spend resources.

6

u/bythenumbers10 Feb 16 '21

They should. Nothing teaches and tests programming fundamentals like a problem that necessitates them. Project Euler problems should (and can) run in under a minute, in my experience, even in Python. Coming up with a garbage problem to test exactly DFS or whatever is transparent. Taking a problem that requires DFS to do something interesting is....interesting. Requires potential solvers to be clever and resourceful enough to invent or seek out what they need to know. Solving such a problem (with OTJ-like resources on hand) in a timely manner is EXACTLY the skillset they should be hiring for, but HR drones and illiterates are obsessed with finding a DS that knows everything ever off the top of their head.

5

u/Admiral_Wen Feb 16 '21

I can see that for the software engineering domain, but not data scientists. Many Project Euler or LeetCode problems make use of concepts like DFS or dynamic programming, which while "interesting" isn't within the range of what a data scientist is expected to know. As the OP points out, ML, data storytelling, and statistical foundations is the core of data science. Project Euler type problem solving is fun, but doesn't test the kind of knowledge that's crucial for data science roles.

→ More replies (4)

4

u/gsunday Feb 16 '21

My team does use (very very simple) project Euler problems as our technical interviews. we feel they are very effective (and often re-inforce TDD)

12

u/thatpizzatho Feb 16 '21

I totally agree with OP. I'd expect questions on math, statistics, and ML theory. We need to detect outliers, perform advance feature analytics, develop intuition for expressive features conditioned on the ML model at hand. We need to understand how to model a problem from a mathematical standpoint first, and then pre and post-process data depending on the task and the model(s) we want to implement. And then, of course, we need to communicate our insights. This is NOT software engineering, a good software engineer is not a good data scientist, and viceversa.

7

u/stonerbobo Feb 16 '21

99% of the entire tech industry cargo-culted Google interviews 10 years ago. The people 5-10 years in now copy the same interview processes they went through, so more leetcode. That's why leetcode is the common denominator.

90% of DS jobs are 80% SWE + 20% data science. There's very few people that actually understand statistics, and not much need for them at silicon valley startup X that basically only has to take an existing model built into scikit and tweak it.

I get your frustration, but ranting here is basically screaming into the void.

Go interview at a place that genuinely needs a data scientist at your level if you want a fair interview. The FAANGs can afford to hire only PhDs for those roles. The rest are more like data engineering. SV startups usually don't need real data scientists. There are very few companies that really do need data science - find one of them, and the interview process will naturally reflect their needs.

2

u/Urthor Feb 20 '21

The issue is the jobs for an applied statistician just don't exist. Companies don't need their variables modelled to a distribution, they just need ML inference for some product they're making and the rest is Software Engineering.

Sadly, there are always going to be 100 software engineers making actual products in the industry for every applied statistician.

7

u/Yacin92 Feb 16 '21

trust me bro, a lot of recruters don't even the diffirence between a data scientist a software ingenieur, that's why they ask all type of weird questions, unless you are interviewed by a data scientist, be ready for all type of question, and the same happen for other specialities, like asking a software ingenieur a super hard and specific sql or devops questions

4

u/beginner_ Feb 16 '21

It's simple. Just ask straight up front how their technical part looks. Then nicely decline if it includes stupid quizzes.

The whole thing also tests you with how much bullshit you are willing to but up with. The more the less they need to pay you and the more they can squeeze you dry. Do you think someone referred to by "networking" has to to stupid quizzes? No.

3

u/proverbialbunny Feb 16 '21

Do you think someone referred to by "networking" has to to stupid quizzes? No.

You'll get a high error rate if you ask each interview different questions. When interviewing it's important to ask everyone the same questions. So, at those companies? Yes. Even with a referral. It's a good way to get seniors to walk out.

3

u/yash3066 Feb 16 '21

Omg, finally someone said what I was thinking deep down about people asking competitive programming questions to ML, DL, DS engineers. This is such a mess, Firstly people should know what type of work a DS does and what an SDE does.

1

u/[deleted] Feb 19 '21

Let's not get into competitive stuff. Many data scientists and software engineers lack the skills to design a naive solution for a HackerRank-type of problem. In my company, data scientists work along with software engineers, I expect both the data scientists and software engineers to have enough knowledge to keep the pace with the others regardless of their main domain. When I give you a simple task, like solving a basic problem with backtracking and you switch on autopilot, looking at me in a state of confusion, that's a bad indicator. Also, if OP would have interviewed with us and started to talk about how data scientists should be exempt from "programming puzzles", we would have stopped there and not pursue any further that candidate. If you don't know the basic sorting algorithms and data structures on which they operate, then I'm sorry, you're out, even my cousin that is near me right now (who is a physics professor) has done his fare share of algorithms in MATLAB. To sum up, you don't give me any clue that you would be a good investment, I would risk with you a lot, if you don't make an effort to understand or refuse to learn the basic stuff, then the future with us wouldn't be that bright.

8

u/ohanse Feb 16 '21

I really don't think the interview candidate gets to dictate expectations for the position, my dude...

2

u/proverbialbunny Feb 16 '21

Anyone who is worth hiring gets to choose what kind of work they want to be working on. They have multiple offers. They're going to choose the company with the workload that suits them. Does leetcode sound like a good data science workload? If not, then why interview for it? It's a great way to get senior data scientists to turn down offers.

2

u/CommanderVinegar Feb 16 '21

I did an online assessment that had a hard level leetcode question. This was for an entry level position that only needed an undergrad mind you, specifically a business, engineering, or science undergraduate degree. Safe to say I didn’t land that job.

2

u/[deleted] Feb 16 '21

Oh well. I’m going to have to learn DSA looking at this post... dang it

2

u/rudiXOR Feb 16 '21

The point of leetcode is not a test, if you are a good SWE or DS. It's about testing if the applicant is willing to spend quite some time on leetcode to pass an interview and a minimum intelligence barrier. It has something to do with your mentality and age. Younger people are more likely to know leetcode e.g. from university. And second, if you are willing to learn leetcode, instead of doing useful stuff, you are probably a better fit for such a large company. They don't need critical and out-of-the-box thinkers, they need peons doing what they should do. You can see clearly that all innovations from the large tech companies are not developed by them, they are usually acquired. The exception is obviously the first invention, when they still where a startup.

3

u/proverbialbunny Feb 16 '21

They don't need critical and out-of-the-box thinkers, they need peons doing what they should do.

Engineers, definitely. That's their job. Do what you're told.

Data science work is a lot more sitting in meetings, figuring out what could benefit the company, and proposing projects.

Maybe at large companies they need just a cog in the wheel, but why call them a data scientist at that point?

2

u/Kengaro Feb 16 '21 edited Feb 16 '21

complicated SQL, pandas, data munging, visualization, ML training, building simulation code, etc.)

This is tool knowledge, at least most of it. Meaning it says little about analytical skills or problem solving skills in general. It says a lot about specific knowledge, and experience with certain tools.

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"

This is a general question testing problem solving & logical thinking. These type of questions are useless if the question is known and the solution can bee looked up & learnt. So if your interviewer is expecting a person like op answering with different path finding algos it is imho a waste of time for both parties.

It has to do with what type of person you are looking for, I suppose.

1

u/MrFlamingQueen Feb 16 '21

The second question has bias against those who didn't grow up in environments playing chess. Unless the interviewer is explaining the rules of chess to the applicant, you could potentially be weeding out people through no fault of their own.

2

u/Kengaro Feb 16 '21 edited Feb 16 '21

Any of these questions is useless without a full set of rules (at least for testing the things mentioned above), if there is something missing people should ask, if an applicant is wed out for asking - now that would be quite ridiculous indeed. I agree with you, any question like that should have a completely explained ruleset.

When rules are on purpose not complete, not only the abbilities above are tested but also the character of a person. While it might seem like a boon to test multiple things at once, a question without a full ruleset will give little insight in regard to the skills problems like the "chess-problem" are ment to probe.

If we have a problem with known rules to a certain part of the population, such as chess, and an interviewing person which does not explain the rules, we change the purpose of the question in a useless way. As soon as rules can be deducted from knowledge, it is no longer a test of character, and if that knowledge is no requirement for a job the interview process would be flawed.

2

u/[deleted] Feb 16 '21

Search is a part of ML!

2

u/memcpy94 Feb 16 '21

I have interviewed for both data science and software engineering roles. I think anything more senior than a new grad or entry level job should not require leetcode, system design, and math problems.

Employers could choose to ask me about my experience instead. I don't know why every prospective employer pretends like we were not programming in our last job.

2

u/dublem Feb 16 '21

"Welcome to your datascience interview! Question 1: Design a rudimentary Operating System"

"Uhhhh..."

8

u/[deleted] Feb 16 '21

If I ever have to learn something worthless like leetcode to get a job in DS, I will leave this profession. I don’t want to spend my time learning something I’m never going to use in actual work. I would much rather spend my time learning something useful.

3

u/mohdgame Feb 16 '21

I have a degree in SWE, its a myth that you need a degree to understand and be able to work in the field. The information is available to everyone. Literally anyone with passion and interest can become good in this field.

I know mechanical engineers that can program much better than computer scientists.

4

u/[deleted] Feb 16 '21

To be honest, I disagree with a lot that is in this post. Many bioinformatics data scientists (what I am) think they don’t need to know the base level algorithms or have a concrete understanding of data structures but that couldn’t be farther from the truth. Software engineering is about half of a data scientists job. You make tools, that process data into formats that people can easily digest. This may come in the form of SQL queries on a google big data sheet or you may be writing a small software that stands as the front end to a large ML architecture such as a recommendation system. Bottom line, user experience is everything. If your coding isn’t sharp, the user experience is poor and they won’t come back. Leet code questions and answers are just a way to see if you can solve small coding problems without having to google everything when you are writing software.

11

u/MassW0rks Feb 16 '21

You say that you disagree, but your statement aligns with what OP said.

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

4

u/TSM- Feb 16 '21

I agree with your rant. In fact, some studies have shown that people who excel at kaggle competitions, leetcode, etc., tend to not be great in a group workplace environment and are not good long term employees.

16

u/dopadelic Feb 16 '21

Links to studies?

2

u/proverbialbunny Feb 16 '21

I remember when kaggle was new most of the people winning the competitions were not career data scientists. Most people who won were electronic engineers. Their knowledge of DSP in the early days created some of the best feature engineering, and when boosted trees became the hot new thing, it came from engineers, so they continued winning competitions for up until I stopped following kaggle.

Yet in the work place, these people do not make good data scientists. I'm sure things have changed since then, but I always found that factoid about EEs neat.

1

u/just_just_regrets Feb 16 '21

studies have shown that reddit comments without any sauce aren't very trustworthy (source: me)

2

u/Insighteous Feb 16 '21

What I think a lot of answers are missing: The long term view.

In the future it will be even more important to have a good understanding about data structures and algorithms. The world isn’t black/white. Data scientists will need both, a solid understanding of math, stats AND a good understanding about computer science. How else should someone understand new algorithms and evaluate them? Through a post on medium? ;-)

The only exception are the 0.1% who are working for FANG or something like that and do extremely specialized things.

4

u/Bardy_Bard Feb 16 '21

I see the opposite. As libraries become more mature I think data structures and algos will mean less and less, as the out of the box quality improves. The important skills are going to be how to use them and core concepts regarding the validity of the chosen tool.

For example, you don't need to remember the formula for linear regression, but the assumptions behind it, and how should the residuals look like etc...

1

u/Insighteous Feb 16 '21

Since, as I assumed, most of the data science positions are not "pure analytical" and they have to do engineering stuff also, to get more than prototypes, I don't think your statement holds. Furthermore, for total new things there does not exist a library to begin with.

1

u/Bardy_Bard Feb 16 '21

In my experience 80% of data scientists nowadays do analytical work for the most part ( I am based in Northern Europe, so things might be different elsewhere).

Those that do more engineering stuff it's usually ML engineers and DE.

I think at least that has been the trend in the past few years from what I know. Lyft has even changed all analyst to data scientist title to better reflect current industry and the "older" DS have gotten new titles.

Seems to me most of the discussion at this point is about what is a data scientist and what is it supposed to do

1

u/proverbialbunny Feb 16 '21

In the future it will be even more important to have a good understanding about data structures and algorithms.

Over a decade ago when I was doing data science work knowing data structures and algorithms was super important. I had to write a lot of libraries from scratch as they didn't exist yet.

Today, we have so many libraries it's unnecessary. Furthermore, where it still is necessary today, new libraries are popping up every day to counter that.

Now if you want to write statistical libraries, I get that CS is important, but that's a specialized role waayy beyond typical data science work these days.

1

u/Cosack Feb 16 '21

Agreed that memorizing obscure methods isn't useful, but you do need a feel for if someone can code and knows enough to look up what they need. Leetcode's been the standard on that front, so watcha gonna do...

Good news though!

Some top tier companies are beginning to explore pair programming and debugging as an alternative to LC interviews. This one makes all the sense in the world to me. You should be able to read code, recognize common issues, and demonstrate that you can look something up efficiently.

Some tradeoffs here though. Memorizing the syntax of a language will become more important, so everyone in the interview can recognize constructs; won't be able to show up with your own choice as often. This may in turn set precedent for how teams are expected to work, reducing the usage of more fringe languages and tools. I also expect DS will lag on adopting this model, as it does with all meta engineering trends. As SWE'ing very slowly moves away from LC, we'll see more of it for a while.

1

u/Professional_Crazy49 Feb 16 '21

Thank you for this!! I was prepping for DS interviews and the amount of things we need to know to get a job is overwhelming! (which is probably why the pay is higher too) I was initially focusing on stats/ML based questions but then I hit the data structures & algo road and omg it's a never ending road. Since I have a background in CS, it is a bit easier for me to understand but I have been out of touch from those leetcode type questions so it's a pain. At this point, I am just thinking of moving to SWE.

Plus, from what I have seen on this sub, apparently it is easier for people to land SWE roles than DS roles and apparently most of the DS roles nowadays are either SWE or Data engineering - This really demotivated me! I think this gap is because of those TDS articles/Coursera courses, etc. which glorify that DS roles are all about model building and they urge you to complete their course to enter the "hottest field of 2020". This probably creates a gap b/w what people learn vs what is actually used on the job (or expected by companies).

If there are any of those MOOC/TDS people on this sub, PLEASE CREATE COURSES/ARTICLES THAT COMPANIES EXPECT DATA SCIENTISTS TO KNOW!!!

2

u/proverbialbunny Feb 16 '21

PLEASE CREATE COURSES/ARTICLES THAT COMPANIES EXPECT DATA SCIENTISTS TO KNOW!!!

A data scientist was originally a title for a senior data analyst, so data analyst courses are still relevant.

Today data scientists often create models that automate what a data analyst does manually. This is something that can be learned through projects.

Though, note around 1/3rd of data science jobs are the machine learning engineer type that specializes in ML and big data. If you like that kind of work, that is another option. The industry is too young to have solidified split titles. Some companies in very recent years have started calling them applied data scientists, but the majority just call them data scientist, despite them being an offshoot and not the original kind of data scientist. In short, you get to choose what kind of work you want to do.

1

u/Bardy_Bard Feb 16 '21

I agree with this. My experience is similar to yours OP, and my problems tend to be worrying about training/valuation and covariate shift on ml problems, estimating lift/feature impact using econometrics and writing SQL and python data cleaning (and occasional pipeline). A lot of my colleagues are more involved in A/B test, but that's it, no one is doing hardcore SWE work.

I don't really know how can the experience on this subreddit be so different.

1

u/proverbialbunny Feb 16 '21

Unless we received a BA or MA in computer science -- which majority if not most of us did not

In 2020 the number of data scientists with a software related degree jumped up significantly to 21%. It's quickly becoming the most common kind of degree data sciences hold, almost beating biology as the most common degree data sciences hold. However, this could be a bubble, not a continuous trend. We'll have to wait a few years to find out. Personally, I think it's a bubble, because universities are offering a data science degree. I would be surprised is CS stays on top when you can get a DS degree.

Something simple is fine, like hashmaps, two pointers, strings, some light algorithms etc.

I don't know if I would consider it disrespectful, but I would question what they were hiring me for if they gave me a whiteboard problem. This includes all of the topics you mentioned. I do think there is benefit to casually asking what a dictionary is, as well as asking what a dataframe is. Possibly asking about groupby and apply. I'd like an understanding of what they know, not what syntax they've memorized.

1

u/[deleted] Feb 16 '21

I am literally grinding on LeetCode and stuff I never use ever and never will use in this role right now. I loathe this part of any interview.

1

u/christophepere Feb 20 '21

The actual problem with data science is that companies put everything in it, every jobs closed to data is data science. Lot of the time I’m fighting against the idea that a data scientist need to put his code in production with model deployment and follow the metrics... it’s MLOps but companies doesn’t understand the difference. So I’m glad that someone push this in the light. Yes we need a little knowledge about SWE to do data science but a data scientist isn’t a coder. The strength of a data scientist is in the analytical, understand data, build model to model it. It’s not build a perfect optimization code and put it in production...

1

u/ShavedBlueBear Feb 16 '21

Because it's harder for the tester to understand actual field related questions? It's much easier for them to look up questions with definite answer and use it to test people?

1

u/g1bgarbag3 Feb 16 '21

I completely understand your point just having interview this week and face this kind of question it make me feel very bad not able to correctly give result while it is not my expertise.

1

u/NoThanks93330 Feb 16 '21

Unless we received a BA or MA in computer science -- which majority if not most of us did not

No? Does someone maybe have some data on this? I might me be completely wrong, but my guess would have been that the majority of data scientist come from a CS background - and the rest is mix of statisticians, mathematicians and self taughts.

1

u/proverbialbunny Feb 16 '21

The majority of data scientists come from a biology background. In 2020 21% of data scientists with a CS degree, which is a large jump from 2019.

1

u/NoThanks93330 Feb 16 '21

The majority of data scientists come from a biology background.

You got a link for that? Best I could find is this https://medium.com/indeed-engineering/where-do-data-scientists-come-from-fc526023ace, which doesn't really back that up. There is a (for me) surprisingly huge amount of data scientists who come from business/economics though

1

u/sjkbamboom Feb 16 '21

Data Scientist is not some weird nerdy genius who should know every god damn thing under the sun. Most companies think they can save money but they are clearly wrong. Loose Money or Earn Experience....

1

u/New_Exit6086 Feb 16 '21 edited Feb 16 '21

I opened reddit today to look at a post (which goes by ... blueprint to prepare for data science interview ...) which has all these standard algorithms which are asked in DS hiring tests. Now here i am typing this :)

- Not a computer science graduate but just love the critical thinking which is involved in solving problems with data.

- Can't agree more on why they ask all those problems to be solved optimally in a 60 min time window.

- Maybe I hope the data science hiring tests will evolve in the coming years without too much reliance on SWE questions and having its separate way of preparing and testing

- The system is in such a way that to filter out the candidates, the tests are competitive. It's just there and there is no way around it so do whatever it takes to clear the test to get an on-site interview.

1

u/neuronet Feb 16 '21

Meh use it as a filter for that company

1

u/jmortin Feb 16 '21

Always love a good rant. Spot on.

1

u/[deleted] Feb 16 '21

Agreed OP. This is why data engineers, data scientists, machine learning engineers and analysts have differing titles.

If you’re a start up, and require a data scientist, you obviously require flexibility; leetcode is not going to test someone’s ability to apply domain knowledge, and logic packaged in code.

If that’s your goal, then you’re hiring a data scientist for the wrong reasons or you haven’t done your research.

INTERVIEWERS, have context in mind, have an idea for what you want your data scientist to do.

1

u/Cill-e-in Feb 16 '21

If I’m going to use pandas and power BI, ask me about pandas and power BI.

1

u/Leading_Dust_1633 Nov 27 '22

It depends on the project you'll be working on, as a data scientist i needed to use dynamic programming in a project so it's not absolutely irrelevant.

1

u/elus Feb 16 '21

If you feel that these questions are beneath you then you should let the interviewer know ahead of time so as to not waste each other's time.

It's on you to convince them why they don't need to follow their hiring process and why they should trust you to do the job.

4

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

It’s not a matter of whether or not the questions are beneath OP. They’re not even relevant. You wouldn’t hire a barber based on their ability to do people’s nails.

2

u/elus Feb 16 '21

Lots of people have shown instances where the needs of the role require the demonstration of some of those skills to have confidence that the applicant is capable of delivering solutions.

1

u/CaptainFoyle Feb 16 '21

Well, that would be for you to decide, not the barber (i.e. OP), would it?

1

u/[deleted] Feb 16 '21

I mean, you technically could, but it would be silly, which is the point OP is trying to make.

→ More replies (1)

1

u/ollief Feb 16 '21

We wouldn’t hire a data scientist who didn’t have some knowledge of ML-Ops, automated deployment pipelines, automated retraining of models. We need people who have some understanding of building software in the real world, and not just running Python scripts from their desktop

5

u/proverbialbunny Feb 16 '21

That's typically what the industry calls a machine learning engineer. Sometimes applied data scientist. Normal data scientists make less and build models only. Though the titles have become muddy because companies want to pay employees less, so they'll often try to hire someone they should be paying more by giving them a lower title.

1

u/[deleted] Feb 16 '21

Quit your bitching and get over it!

0

u/veeeerain Feb 16 '21

It’s a software dev role then, data science is just software development then.

7

u/[deleted] Feb 16 '21

dude I don't know what the heck is going on with my post. Why I've created a holy war between people who think I'm a jacka*s and others who defend me staunchly is beyond me. I just said that you shouldn't ask some complicated search algorithm question to a data scientist and instead focus on actual data science related questions. Why this is making people so sensitive and defensive is really telling

5

u/veeeerain Feb 16 '21

Dude it’s because they don’t actually come from stats backgrounds to even understand what they say let’s sense or not.

They only look at it from a software production aspect. And argue about how graph theory is everything when it’s not really used to help Quantify the data problem at hand.

What you said had to be said, because honestly, while FAANG wants to be addicted to these algorithms, there’s a whole host of industries who are on the stats side.

The only argument these cs people have is:

“DeCisIon TrEes aRe aLl gRapHs”

Well, you and I know damn well no one is implementing decision trees from scratch.

Honestly if they do ask leetcode, I feel it should only be based on dicts and simple stuff, because that’s all data scientists deal with.

7

u/[deleted] Feb 16 '21

Yea I was surprised by that comment about decision trees being graphs. And honestly, was what I said really all that triggering? They are professionals for god's sake. I've seen something similar with BTS fan girls downvoting every negative BTS comment on subreddits as a micro "cancel culture", but to see working professionals doing the same thing to my comments so no one can read them is really alarming.

Yea I totally feel you on dics and simple stuff, and honestly most hiring managers do that from my experience. They are reasonable people, and really not like any of these commentators here. I'm really curious as to who these people are.

→ More replies (1)

-1

u/DarkHumourFoundHere Feb 16 '21

I completely support you. Data analyst for almost 2 years never used git

13

u/[deleted] Feb 16 '21

uh... you should probably know how to use git..