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.
I think I get it but can you explain why r -= names.size then r/2? I get r/2 and [n1,n2] == r and [n1,n1,n2,n2]. and just r-=names.size makes sense too but the order doesnt
if r=52, names.size= 5... 51-5/2 = 46/2 = 23.. 23-5/2=9.. 9-5/2=2.. names[2] = penny correcly
Maybe it is striaghtfoward but if it is striaghtfoward it is a very long distance in that direction because thats not the first thing to pop into my head. But, thank you for this answer maybe next time I'll keep my mind open to seeing this pattern. I went a different route with my calculations.
This comment is hidden because it contains spoiler information about the solution