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.
Your solution really helped me understand this kata....
but note that there's error if return value is nil, for example if n = 6. Change while true clause to: while !temparray.empty? to fix.
I had the same problem with that particular test.... Based on the parameters given, the test appaers to be faulty.