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.
Nice solution, but for loop should have
$i
set tomin($last - 1, floor(sqrt($remain)))
since sqrt($remain) is highest possible number thats square is lover than remain and will prevent testing arrays like[49, 48, 47, 46, 45, ...]
I agree. That and I_am_a-PrOgRaMmEr..... Lots of the clever solutions to this do not account for out of place capitals in the original string.
This comment is hidden because it contains spoiler information about the solution
Since I saw solution, where is detected if "-" or "_" is used as separator, i think, it would be nice to add some tests like
toCamelCase("i-am_a-programmer")
;(But I have no idea how or where, since I never done this before)