Skip to content

Instantly share code, notes, and snippets.

@chop0
chop0 / playground.rs
Created September 30, 2021 04:59 — forked from rust-play/playground.rs
Code shared from the Rust Playground
fn steps(mut a: i128, mut b: i128, mut c: i128, mut d: i128) -> u32 {
let mut i = 0;
while coeffs != (0, 0, 0, 0) {
(a, b, c, d) = ((a - b).abs(), (b - c).abs(), (c - d).abs(), (d - a).abs());
i += 1;
}
i
}
fn main() {