3 ms·
I had a classmate who insisted he found a bug in the R-B tree implementation in CLR, but I was too busy with something else to insist that he prove it to me. I
by hinkley 6y ago
I had a classmate who insisted he found a bug in the R-B tree implementation in CLR, but I was too busy with something else to insist that he prove it to me.
I don't want coworkers who think implementing a sort algorithm by hand is an asset. It's not. It's a skill that has to be managed meticulously, and we rarely if ever do anything meticulously. It's not an asset, it's a liability. Understanding how to balance multiple constraints at once is as asset, and sort algorithms are one of the ways we are introduced to this.
Mastery requires that you see the scaffolding of your education as something to be jettisoned when the project (you) is finished. A lot of very productive people never achieve mastery.
In the same head space as sorting, a lot of people can't implement a custom comparator properly. Sorting is worthless if you can't decide what to sort by. Most people learn about comparators after learning about sort algorithms, so you can in some cases argue your fellow interviewers out of an AVL tree and into sorting customers by name and registration date. Or taking a list of inventory sorted alphabetically and grouping it instead by price range.