As a CS student, I am participating in this years Advent of Code.
While I have managed to get a solution using another algorithm, I cannot comprehend why does this co