Function advent_solutions::advent2017::day01::count_matching
[−]
[src]
pub fn count_matching(input: &str, offset: usize) -> u32
Finds the sum of all digits that match the digit offset by offset in the
list.
The list is circular, so the digit after the last digit is the first digit in the list.