3 ms·
For the input sizes in aoc, the slowdown shouldn't be measurable. Taking input size into account, you do not even need a queue, just loops.
by vjerancrnjak 4y ago
For the input sizes in aoc, the slowdown shouldn't be measurable.
Taking input size into account, you do not even need a queue, just loops.