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.
god why did i not think of this!!!
That's my G
I'd never know there is such formula if I hadn't seen your solution.
oh,thanks for your correcting.
Calling numbers.front() on an empty vector is undefined behaviour, fwiw.
This formula is the highlight of my day.
True story.
This comment is hidden because it contains spoiler information about the solution
This is a perfect example of why this site is a great idea: I can't recall ever seeing this method used before, and I'm confident I would remain completely ignorant of it were it not for your solution. Well done!
This is awesome. Is there any theory in Math that reflects why this works? I'd be curious.
cool man! you know to do this w/o strings!