Added benchmarking
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use std::iter::zip;
|
||||
|
||||
const WORD_LIST: [&str; 9] = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine"];
|
||||
// const REVERSE_WORD_LIST: [&str; 9] = ["eno", "owt", "eerht", "ruof", "evif", "xis", "neves", "thgie", "enin"];
|
||||
const DIGIT_LIST: [&str; 9] = ["o1e", "t2o", "t3e", "f4r", "f5e", "s6x", "s7n", "e8t", "n9e"];
|
||||
|
||||
fn find_first_digit(line: &str) -> u32 {
|
||||
|
||||
Reference in New Issue
Block a user