Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Could the Rust version be approved?
Why do you use drain(..) instead of into_iter() if you do not use the vec digits later? Why don't you use from_digit().into_iter() instead of from_digit().unwrap().to_ascii_uppercase()?
new rust version with
Option
type submitted.Random tests added.
Needs random tests.
Rust translation added.
I find that if the structrue is too deep (about
peano(5000)
), it will cause stack overflow error.The stack overflow is caused by the construction process in
peano
and/or the destruction ofPeano
instance.I try to solve the problem, but the modification would break the simplicity of the solution (with los of code like
m.0.clone()
). So I just reduce the test number.Anybody who has completed a kata can write translations for it.
Could an Rust version be added? I will be glad to write the Rust version if permitted.
I have same thought, and this solution is farly more concise and readable.