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.
I understand that this solution is 100% correct, but I don't understand why we subtract s.Length by 2 instead of 1, wouldn't subtracting by 2 remove the last two characters instead of just the last character? ChatGPT kept talking in circles and broke trying to clarify this for me.
This comment is hidden because it contains spoiler information about the solution