
Episode 72: C++ Algorithm Family Feud!
ADSP: Algorithms + Data Structures = Programs
00:00
Compilers Are Pretty Amazing, Right?
With most optimizing compilers, with optimis optimizations turned on, writing those two forms of the code will give you equivalent code gen really. And i do not believe that there is any observable difference between those two, like, those two ways of writing the code. One other way of solving this problem would be to do something like max element, then take it out, and then max element again. Now, this, this is problematic in a few ways, because one could have had multa. But what, what did you do if you had two values? Ah, that had the same maximum value? Like, what if the highest there were, now, the highest value in the list
Play episode from 23:52
Transcript


