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 really like the dictonary for the final result.
TIL
This seriousTests case is killing me. I can't figure out how to optimize my solution enough to pass.
I've got the obvious case of m <= n covered to knock out half the calculations.
I've also got m - n == 1, m -n ==2 and m = 2n + 1 to knock out more calculations but I cannot figure out how to reduce the calculations when m is much greater than n.
Can someone give me a hint?