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.
This comment is hidden because it contains spoiler information about the solution
Approved by akar's fork!
And what if the area code was, say, 4 digits long?
True, but test passes! :D
True. Although probably not important for the 8th kyu. Thanks :)
"3" > "212139876311"
And what's the point if it's slower and more complex?
Yes, you are right. Thanks for point this out. I am not familiar with the ownership yet.
You can make it mutable; it's yours anyway, so it doesn't change the function interface or anything.
but the input
l
is not mutableForgot to mark the issue as resolved, doing that now. :-)
Back again.
What you write is true. However, you may have mixed up the order of the variables in the error message. Your code does not work for
(ys ++ xs) xs ys
ifxs = "a"
andys = "ab"
.Hope this helps and sorry that you needed to wait.
I'm currently away, but I'll take a look at it in two weeks when I come back.
However, just looking at your solution, it does not solve all the cases. The example you found is a path on the right track.
Sorry for the wait!
Approved! Thanks for your contribution,
@AnthonyMikh
👍It's not avaiable in Rust 1.15