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.
This comment is hidden because it contains spoiler information about the solution
New Challenge : Branchless programming is Lava
Can you share your code (properly formatted, and marked as spoiler)? As far as I can see, your current code does not crash but it fails to compile.
I get an igglo crash dump when I try to do an object that implements the () operator -> works on my side with a C++17 compiler
Well, that is very stranged. I just looked at my C++ test cases again and that value cannot be generated...
I know, I do return lowercases the upper was in the tests not my return, Just happened once (a "P"), I realoaded the tests serveral times and didn't occured, I hadded
"if(i>='A'&&i<='Z') i+= -'A'+'a';" in case
Well, you're suppose to return a lowercase char :P
Handling
letters.Length == 0
isn't enough.answear
can still be96
, and then you return '`' instead of 'z'.Add a case to check if
answear
is 96, and return 'z' in that case.Also, this is an issue with your code and now with the kata, so closing.
Got uppercase char in the last attempt tests, while exercise precise only lowercasse char.