Kaprekar routine First read the problem description. We’ll use Brent’s algorithm for cycle detection. Source code of the solution(s): Rust Tags: rust