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?
new rust version with
Option
type submitted.Random tests added.
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.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.