Skip to main content

change_places

Function change_places 

Source
pub fn change_places(
    matrix: &[Vec<i64>],
    target: usize,
    source: usize,
) -> Result<Vec<ChangePlace>>
Expand description

The cheapest edit from the target to the source read out of a matrix already filled, each change with the places of the two hashes it is between: the by-position twin of calculateChangesList.

ยงErrors

Either side with nothing hashed, or a matrix nothing can be traced through.