chebyshev distance


See On Github

Data

Contributor

Generic placeholder thumbnail

by jcla1

in scala

Source Code

def chebyshevDistance(p: List[Int], q: List[Int]): Int =
    p.zip(q).map { case (p, q) => (p - q).abs }.max