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.
That is true, please look at the example in the kata's description. For the case you say it can't be true, the explanation would be:
Invalid result for s = "acab", part1 = "aa", part2 = "cb" should be false but says its true this cant be true beacuse we dont have aa or cb there
There is nothing to fix, you can't reorder the letters, read the description again.
Invalid result for s = "acab", part1 = "ca", part2 = "ba" it should be false it says but actually should be true please fix this also with Invalid result for s = "aaaabaaaab", part1 = "aaaba", part2 = "aaaba" this should be true too but says false.
u can use
std::transform(temp.begin(), temp.end(), temp.begin(), ::tolower);
so u dont have to use two different variables for lower and uppercase.
based, sigma , gigachad.
This comment is hidden because it contains spoiler information about the solution