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.
needed to use use groups in the replacement
yeah for replacing matched groups we need parantheses
check this out for more info
https://stackoverflow.com/questions/37734164/regex-backreferences-in-java
Well, I feel dumb for not figuring out a fast enough algorithm for this.
Common feeling for me, but that's one of the things that pushes me to practice.
I feel so dumb after seeing this solution
Good kata, lots of fun!
This comment is hidden because it contains spoiler information about the solution
the tricky part for me was to find out the very first departure location, took me too long to admit and really enjoyed solving it.
thats clean af
the mod operator inside [] is so nicely used
what are the parentheses for in the first replaceAll? Seems like without them it won't work.
Does it have to be there to refer the first group for the dollar sign?