pub fn y15d10(input: &str, times: u32) -> u32
Expand description
The solution for the day ten challenge.
We take the input as a string and the number of times to perform the look-and-say as arguments and then return the length of the resulting string as requested by the prompt. We start by converting the input string into a vector of integers and then run the look-and-say function on the result over and over until we’ve run it the requested number of times.
§Example
// probably read this from the input file...
let input = "1";
assert_eq!(y15d10(input, 10), 26);