63 points · by sidcool · 7y ago · 33 comments
Now at work, I am pretty good at creating reliable software (mostly in Java, Scala and Python), but I won't probably pass the first tech round at companies like Google or Amazon. And this is hurting my ego bad. After so many years developing software, I am bad at the fundamentals.
Is this something that worries you? How much percent time do you spend on strengthening CS basics? Do the best tech companies only judge based on Algo/DS knowledge?
Do you need to memorize the algorithms so you reproduce them off the top of your head? No! Should you be aware of what they are in a comparative sense, and have a rough idea of what family of them you should be applying? Yes.
You need to learn just enough to keep learning, and more so when your applying, because only through use do you gain mastery. That. Takes. Time!
As for "will it get you jobs" -- at a subset of companies it will. Another subset will ask you to "write" code (and this is wrong as well)... Do you want to work for those companies is the larger/other question.
Progress in things like algorithms and math, at least from my experience, is measured in 100s of hours, not tens of hours.
You need to 'embrace' the frustration. That's just what learning hard stuff is all about. It makes you feel stupid.
Even the successful academics all have their small list of role models, all of whom make them feel stupid (a list I think ends with Von Neuman).
fwiw I just started studying CS basics at age 29 (although I'm a data scientist professionally). I'm doing it for 'myself' though, not for interviewing.
I’m trying to read a good chunk of a math book (Analysis on Manifolds) while following a syllabus for it so that I know I’m covering roughly one semester of material in one semester of study hours. The most I can realistically devote right now is 30 minutes per day, most days per week. That means this is basically a one year project if I’m consistent enough to spend time on it everyday.
Some people seem to act like it’s extremely easy to teach yourself technical material, but I really don’t buy it unless you do one or more of 1) learn at a very shallow level 2) ignore keeping rest of your life in order and can sacrifice lots of time 3) work in a situation where you have a lot of resources and free time to do it (eg a technical lab at graduate school where reading the book is part of your actual research duties)
So I agree with you completely
I can't say anything about CLRS as I haven't read it or any parts of it.
Although as learning things always goes, I "feel" like I am learning nothing and making no real progress, but then I look back on what I now know that I didn't before, and it's a lot!
Being able to get the questions of Google and Amazons interviews correct is basically good for one thing and one thing only – getting hired at those places.
I have done hundreds of interviews and there are so many other things that I look for before evaluating their knowledge of bloom filters. Maybe I am old school.
I’ve met a couple of developers who know all the theory but who could never get anything done and delivered. Then again, my company isn’t Google.
And that’s just the start of it. Hope it helps.
No, we don't demand that on an interview.
Correction, you are bad at memorizing algorithms or coming up with them in interview settings under time pressure. This can be valuable in some jobs that are heavily algorithmic. Many development jobs are not. As a matter of a fact, many development jobs at FANG are not.
If you have to write the code for it inside an existing code base, knowing a specific algorithm by heart vs looking it up won't really make a lot of difference on the time it takes.
Understanding algorithmic complexity is important when venturing beyond the simplest of software. Why? Because an O(n^3) algorithm may appear to work well with simulated data, tests, or light user load. But, it may bring your system to a halt under real-world conditions. And, it is sometimes not trivial to debug, especially when the complexity spans multiple layers. (I cringe when I see new developers nesting loops inside loops, but sometimes it’s ok).
Also, it’s very important to be able to read and understand code. It’s unavoidable that you will someday encounter complex, poorly-documented code. Say you run into some code that implements a graph algorithm. If you don’t recognize what it is, you will incur a lot of risk when maintaining it.
† - However, you really should know how to implement simple data structures and algorithms, at least conceptually.
Devs worrying about big-O cause issues, too, no matter how good the intentions. CS itself isn't harmful, just one of many tools in an engineer's toolkit.
Now let's say you don't have any experience and you're fresh out of college. What happens with today's setup? Well, you're perfectly able to tackle these interviews since all you know are algorithms, data structures, etc. There's no retention involved since it would be your first gig ever. It's a perfectly well designed process for Tech companies, but it's awful for us I agree.
If you think about it, it's a pretty risky process for companies. Judging a candidate based on a few 45-min whiteboard exercises and a high level system design question, we're looking at only 20% of the whole picture.
I'm not at all worried because I have no desire to be hired there. All indications are that the work environment is pretty toxic. The pay does not come close to compensating for cost of living.
In a world where both Google and Knuth exist, they aren't hiring you to be an algorithm reference book. They're hiring you to create working software. Your task when interviewing is to convince them that you can do that.
The reason they (at least the reasonable places) ask algorithm questions is because they want to see you think through something you don't know. They also want to see you write some code for something small, just to make sure you can.
If it's a place that is going to judge you negatively for not knowing every algorithm they ask you about, that says more about them than about you. Be grateful such places eliminate themselves from consideration in such a straightforward manner.
I wouldn't suggest totally ignoring algorithms, but it's at best secondary. Being proficient at solving performance problems or architectural issues are very valuable skills in the marketplace. That said, even those are mostly practical and about pattern recognition (which you get from writing software).