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.
In R the naive solution may timeout, depending on the random test rolled. And since mine failed on the first try, I introduced memoisation. Sumbitted, passed (not sure now if coz of luck or not) and found the naive solution to be the "best" one.
Meh. :(
in R you want to require "\n" and not "\n" as the line separator if the aim is to create shapes in formatted strings:
cat("aaa\nbbb")
aaa
bbb
cat("aaa\\nbbb")
aaa\nbbb