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.
Thank you for the changes and prompt reply!
I changed the tests to give a somewhat bettwer feedback, but infortunately your solution fails only for longer inputs so it can be not that easy to debug. However, I found out that your solution fails following test case:
Additionally, you are handling letter case incorrectly: "case-insensitive" means that lowercase letters and uppercase letters should be treated as the same.
Yoru solution is buggy, it's not a kata issue.
From Output:
Expected: true, instead got: false
Log
[ 'ocll tottcnydlj yxp yajneqiybj axeeberr y kyttidbirsiyem hmjjlrijr jalci ii ts r',
'Alexandria' ]
Sorry, I don't understand why we should end up with "true".
"Letter comparison should be case-INsensitive."
And there is no "A" in the "str".
And even if we forget about letter case, the letters are not in the right order:
'ocll tottcnydlj yxp yAjneqiybj axeeberr y kyttidbirsiyem hmjjLrijr jalci ii ts r'