rules

Function rules 

Source
fn rules(checksum: &[u8], freq: &[usize], fof: &mut [i32]) -> bool
Expand description

Check each pair making sure that the frequency is non-increasing and that there are no letters in between (fof should be zero for all intervening frequencies). If the frequency is equal then also make sure letters are in alphabetical order.