
Episode 115: Max Gap in C++23
Algorithms + Data Structures = Programs
00:00
C++ 98
I want to pick a fight with you here, which is that I believe the my answer slot like slide into Jason are more or less the same thing. The reason is, and specifically adjacent is not really the correct, like the gold answer was adjacent transform. Slide takes its window size as an argument, variable arguments, whereas adjacent takes its window sizes as a template argument. And do you know what the C++ 98? Hang on. Hang on. Oh, so it's just adjacent transform than reduce. That's very elegant.
Transcript
Play full episode