Module aoc::year2017::day10

source ·
Expand description

§Knot Hash

Instead of reversing elements from the starting position then trying to handle wrap around, its easier use rotate_left to rotate the array by the same amount so that the starting position is always zero, then take advantage of the built in reverse method.

Functions§