3 ms·
I didn't have that issue at all; I just looped through the 20 different tokens and found first and last instances of all of them, and compared the very first an
by xdavidliu 3y ago
I didn't have that issue at all; I just looped through the 20 different tokens and found first and last instances of all of them, and compared the very first and very last of all instances.
https://github.com/xdavidliu/advent-of-code/blob/main/2023/day02.cpp https://github.com/xdavidliu/advent-of-code/blob/main/2023/d...