Algorithms Interviews: Theory vs. Practice
1–9 of 9 posts
Re: Algorithms Interviews: Theory vs. Practice
#2Algorithmic questions started with Microsoft, who wanted to make sure engineering hires could... program!
The point was to make it as language agnostic as possible and friendly to college hires (since everyone who did a serious CS program did algorithms, there was a common vocabulary). You weren't even meant to study intensively for these, just brush up on your algo class.
But now I keep seeing guides on the internet about "hacking the coding interview" and special "prep material" pushed by influencers (???) on YouTube that claim to be ex FAANG (hard to check). Apparently there's even classes taught at tier two colleges (Waterlo if I recall) that specifically focus on algorithm interviews. Not algorithms, just algorithms interviews. They get interview questions from students and the class is just memorizing as many of them as possible.
Re: Algorithms Interviews: Theory vs. Practice
#3What's even more interesting is the new meta-game around interviews. Algorithmic questions started with Microsoft, who wanted to make sure engineering hires could... program! The point was to make it as language agnostic as possible and friendly to college hires (since everyone who did a serious CS program did algorithms, there was a common vocabulary). You weren't even meant to study intensively for these, just brus…
Re: Algorithms Interviews: Theory vs. Practice
#4What's even more interesting is the new meta-game around interviews. Algorithmic questions started with Microsoft, who wanted to make sure engineering hires could... program! The point was to make it as language agnostic as possible and friendly to college hires (since everyone who did a serious CS program did algorithms, there was a common vocabulary). You weren't even meant to study intensively for these, just brus…
Yeah it is a skill set in and of itself. To pass a modern interview in my experience you need to take a week or two on Leetcode to brush up and do a run through Cracking the Coding Interview for concepts/terminology. In my opinion this is fueled by an abundance of excellent sheep (a good book) among hires at tech companies. If you’re trained for years and years (middle, high school, and college in the US) to study fo…
In my experience, there's a point where it becomes 100% cargo-culting/rote.
The best approach is to keep the coding (it's essential to be able to write code on the whiteboard, period) and have some elements of algorithmic reasoning but focus on using those to solve a real problem.
Re: Algorithms Interviews: Theory vs. Practice
#5What's even more interesting is the new meta-game around interviews. Algorithmic questions started with Microsoft, who wanted to make sure engineering hires could... program! The point was to make it as language agnostic as possible and friendly to college hires (since everyone who did a serious CS program did algorithms, there was a common vocabulary). You weren't even meant to study intensively for these, just brus…
Yeah it is a skill set in and of itself. To pass a modern interview in my experience you need to take a week or two on Leetcode to brush up and do a run through Cracking the Coding Interview for concepts/terminology. In my opinion this is fueled by an abundance of excellent sheep (a good book) among hires at tech companies. If you’re trained for years and years (middle, high school, and college in the US) to study fo…
Re: Algorithms Interviews: Theory vs. Practice
#6Earlier quoted context omitted.
Yeah it is a skill set in and of itself. To pass a modern interview in my experience you need to take a week or two on Leetcode to brush up and do a run through Cracking the Coding Interview for concepts/terminology. In my opinion this is fueled by an abundance of excellent sheep (a good book) among hires at tech companies. If you’re trained for years and years (middle, high school, and college in the US) to study fo…
some leetcode is good, too much is pretty much useless. There are people who study all solutions to hundreds of leetcode problems to crack the interview, while this hard work is admirable, i feel like they wasted so much time studying that than something that actually makes them a better engineer. For example, i studied Floyd's hare and tortoise algorithm for cycle detection in a linked list a couple months ago, its…
1) many Leetcode style solutions are to problems that were at one time practical engineering problems; cycle detection infact is still relevant in cryptography.
2) novel implementations are required all the time in companies that have bandwidth for greenfield projects (ie FAANG). For example, if you search through the source of pytorch (or tensorflow) you will find implementations of the solution to https://leetcode.com/problems/merge-intervals/description/
So everyone always lamenting how useless Leetcode is, is pretty much telling on themselves re the kind of work they do.
Edit: though this isn't what you broach, people that think there's no meaningful difference between eg O(n^2) and O(nlogn) are also broadcasting to the world that they've never run code "at scale". These companies have power bills that are denominated in Bs not Ms and so improving perf by even 1% (on a critical hot path) can be worth millions to the company (and RSU refreshers to you). If you don't believe me then believe Andrei alexandrscu
https://youtu.be/ea5DiCg8HOY?t=175
>So if you shave 1% you've made your salary for 10 years alone
Re: Algorithms Interviews: Theory vs. Practice
#7Earlier quoted context omitted.
some leetcode is good, too much is pretty much useless. There are people who study all solutions to hundreds of leetcode problems to crack the interview, while this hard work is admirable, i feel like they wasted so much time studying that than something that actually makes them a better engineer. For example, i studied Floyd's hare and tortoise algorithm for cycle detection in a linked list a couple months ago, its…
Just because you do not do the kind of work that necessitates being familiar with that solution doesn't say anything about the universe of programming jobs. Realize two things 1) many Leetcode style solutions are to problems that were at one time practical engineering problems; cycle detection infact is still relevant in cryptography. 2) novel implementations are required all the time in companies that have bandwidth…
Re: Algorithms Interviews: Theory vs. Practice
#8Earlier quoted context omitted.
some leetcode is good, too much is pretty much useless. There are people who study all solutions to hundreds of leetcode problems to crack the interview, while this hard work is admirable, i feel like they wasted so much time studying that than something that actually makes them a better engineer. For example, i studied Floyd's hare and tortoise algorithm for cycle detection in a linked list a couple months ago, its…
Just because you do not do the kind of work that necessitates being familiar with that solution doesn't say anything about the universe of programming jobs. Realize two things 1) many Leetcode style solutions are to problems that were at one time practical engineering problems; cycle detection infact is still relevant in cryptography. 2) novel implementations are required all the time in companies that have bandwidth…
Re: Algorithms Interviews: Theory vs. Practice
#9Earlier quoted context omitted.
Yeah it is a skill set in and of itself. To pass a modern interview in my experience you need to take a week or two on Leetcode to brush up and do a run through Cracking the Coding Interview for concepts/terminology. In my opinion this is fueled by an abundance of excellent sheep (a good book) among hires at tech companies. If you’re trained for years and years (middle, high school, and college in the US) to study fo…
some leetcode is good, too much is pretty much useless. There are people who study all solutions to hundreds of leetcode problems to crack the interview, while this hard work is admirable, i feel like they wasted so much time studying that than something that actually makes them a better engineer. For example, i studied Floyd's hare and tortoise algorithm for cycle detection in a linked list a couple months ago, its…
"Someone with a 2300 ELO is a good player. Someone with a 2750 ELO has wasted their life"