fn abs_diff(x: usize, y: usize) -> usize {
   if x > y {
      x - y
   } else {
      y - x
   }
}
/// Calculate |x - y| while avoiding underflow
Calculate |x - y| while avoiding underflow
Calculate |x - y| while avoiding underflow
fn abs_diff(x: usize, y: usize) -> usize {
   if x > y {
      x - y
   } else {
      y - x
   }
}
fn abs_diff ( x : usize , y : usize ) -> usize { if x > y { x - y } else { y - x } }
Calculate |x - y| while avoiding underflow
Calculate |x - y| while avoiding underflow
x
usize
y
usize