Function rdcl_aoc_helpers::math::gcd

source ·
pub fn gcd<T>(a: T, b: T) -> Twhere
    T: Copy + Eq + Rem<T, Output = T> + Default,
Expand description

Computes the greatest common divisor for numbers a and b. TODO: May return negative values.