aoc::year2016::day16

Function count

Source
fn count(ones: &[usize], length: usize) -> usize
Expand description

Counts the number of ones from the start to the index (inclusive).