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.
still a duplicate. We already have too much kata about collatz sequences.
whether x is repeating a number and in which position.
is unique for nowHi, sorry first time trying to publish something, getting used to the platform. It is fixed now.
Unpublishing for now. Please fix the kata and bring it to a publishable, runnable state.
This comment is hidden because it contains spoiler information about the solution
Hi,
First of all you can solve this Kata with a simple loop that check whether the letter is uppercase (in which case you would add a space before it).
To your question, these are Regular expressions. Plainly speaking it is an easy way to find and manipulate patterns in a string.
The [A-Z] means any upper case character and $1 means the first group you found (so they add a space and $1).
Here is a website you could learn about the subject: https://www.vogella.com/tutorials/JavaRegularExpressions/article.html