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.
Number of pairs will be half the total length of characters as two characters form one pair,
so in if total number of characters are odd then last pair will be pair[s.length()/2]
Can anybody explain why this works??
(pair[s.length()/2])