It seems so only at first glance, perhaps it still seems so because of the "mathematics" tag. But in fact, the complexity of this kata is fully consistent with its 5kyu and it is solved without any mathematics, just in cycles and does not require any difficult optimization.
It seems so only at first glance, perhaps it still seems so because of the "mathematics" tag. But in fact, the complexity of this kata is fully consistent with its 5kyu and it is solved without any mathematics, just in cycles and does not require any difficult optimization.