Algorithms + Data Structures = Programs cover image

Episode 115: Max Gap in C++23

Algorithms + Data Structures = Programs

00:00

C++ Library Evolution

In functional languages, this is called zip tail. It's how I would do it where the two input sequences that I would give to the reduction would be one would be like from the zero element to the n minus one element and the other one would be from the first elements to the n element. And so if you create those two sub sequences of the original sequence and then you feed them into a zip,. Then you do a reduction on that zip to view, then you're doing a reduction on the pairs of adjacent elements  and then the reduction you just do, you know, max? No, you are 100% correct. You can solve this with slide, but slide is a

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app