r/cpp • • Dec 15 '21

Modern C++ in Advent of Code

This series, by Šimon Tóth, is a step by step guide through the solutions of Advent of Code 2021 using Modern C++.

242 Upvotes

83 comments sorted by

View all comments

5

u/syyyr Dec 15 '21

So for example 0 0 0 0 0 the correct response would be 0 for 1 2 3 4 5 it would be 4 .

I spent like five minutes understanding this, because it's one sentence for two examples.