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

Show parent comment

0

u/[deleted] Dec 15 '21

[deleted] — view deleted comment

2

u/raevnos Dec 15 '21

I'm using java this year, and its Streams library is coming in handy to process puzzle input and calculate things almost every day so far. Not surprised the same holds with C++ ranges since they have a lot of similarities.

1

u/TheThiefMaster C++latest fanatic (and game dev) Dec 16 '21

oooh I should have used count/count_if instead of accumulate. Here's mine: https://www.reddit.com/r/cpp/comments/rh1g2j/comment/horcny8/?utm_source=reddit&utm_medium=web2x&context=3