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.
yes, Strings are always immutable (unchangable)
If you ain't using 3 loops, you ain't trying!
Very cool solution, I need to get better at ternary statements and this helps thank you.
But now you do...
Wish I knew the replace method......
check this if may help https://www.javatpoint.com/java-string-replaceall
Can anyone explaine that (".", "#")? thank you very much
wow. Nice
Sometimes the answer is right in front of you... Looking at this makes me feel a bit silly about my solution :D
i though with the same logic but I consumed 15 lines of code, so thanks for this xD
I googled, and may be understood the patterns problem you mentioned. But this version is same as:
replace(char oldChar, char newChar) right?
Wow, I did not even think of using ?: in this kata. Nice!
well people do way better than me but appreciate it
Extra marks for squeezing all the air out of this code
I found the solution by observation. But I would like a proper math/logic explanation. Can someone help me please?
Loading more items...