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.
OP solved it, closing
Not the possibility, instead the amount of arrangements.
reset the trainer (copy your current code before)
Really helps to write it down on paper
so you could easier see the pattern.
For
buddy(a, b) = [n, m]
,n
is the first number betweena
andb
that has a buddy. 10 doesn't have a larger buddy, and none of the numbers between 10 and 47 do either, but 48 does. 48's buddy is 75, so the answer tobuddy(10, 50)
is[48, 75]
.