Function aoc::year2022::day10::parse

source ·
pub fn parse(input: &str) -> Vec<i32>
Expand description

Tokenizes the input treating both “noop” and “addx” as no-ops to obtain the correct instruction timing. Produces a vec of the absolute values of x from cycle 0 to 241.