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.
Had to dust off some old maths to understand this one :shame:
I think we'll mostly agree that this is cool, but isn't great for people who forgot (or never learned) the required math. So I got curious, should I write code like this even if some coworkers struggle to read it later? For the sake of performance, maybe? So I did some testing with hyperfine and... it depends, but it's pretty neat.
Well, that's embarassing. Thank you for explaining, definitely not an issue.
The input isn't
'consecutive CApitals'
that's what your function returned. Print the input to see what it is. Not a kata issue.This comment is hidden because it contains spoiler information about the solution