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 i am, thx for making me realize i had some unecessary checks
to be fair, you are doing the same by using .toCharArray and .length
This comment is hidden because it contains spoiler information about the solution
TIL! I thought the .replaceAll() ment it replaced all occurences it finds, and .replace() only one.
Thanks!
could you elaborate why the replace method is better regarding the regex?
This comment is hidden because it contains spoiler information about the solution
lmao
I belive most sane c/c++ compilers optimize any multiplication/divison by powers of two into bit shifts, which is even faster than addition
This comment is hidden because it contains spoiler information about the solution
Why so much hate bruh