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.
\d means any digit from 0 to 9
You may have sussed it out by now, but some of the random test strings actually have double whitespace, and some of the test case outputs don't represent the double whitespace difference clearly due to word wrap.
This was way harder than a 7 kyu imo, should be 5 or 6
This comment is hidden because it contains spoiler information about the solution
Wow, your solution is honeslty great, I'll be taking inspiration to optimize mine as well!
I'm relatively new to Java, can someone explain how this works?
This comment is hidden because it contains spoiler information about the solution
Well... I implemented decryption with a call to the encrypt but calculating
n
accordingly so that both functions become inverse of one another.lol with how long this solution took with decryption, I think it should be a 5 kyu. Great kata though!
Honestly same, lol this did not feel like a 8 kyu for me either
Can someone explain how the matches method is working here? In particular, the \d within the argument
I'm truly a beginner when it comes to coding, only about a month in, but how do you come up with such a succinct solution like this? Where did you learn the syntax to put it all in one line?