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
This comment has been deleted.
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
I'm a native speaker and I don't understand wtf it's asking. Tf is Max? It seems to only take in one parameter. When my Java doc shows it needs a minimum of two values.
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
No company would ever accept your answer out of style. Your code needs to perform.
based
lmao
CS isn't for you bro
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
Addition runs faster than multiplication
This comment is hidden because it contains spoiler information about the solution
Loading more items...