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.
Maybe change the function nameto follow best practise, like
equal_sum?
.OMG bro,you show me a new method to play this!That's so interesting!
Wow, You have just shown me that simple task can have awesome and unobvious solutions :)
As the Safe Navigation Operator,
&
deals with the possibility ofnil
when calling the method on the object – maybe consider&.
together here: https://stackoverflow.com/questions/36812647/what-does-ampersand-dot-mean-in-rubywhat does the & do?
This comment is hidden because it contains spoiler information about the solution
Hi @steffan153, I'm a beginner in java and I've never seen "<<", could you explain ? The mentioned doc didn't enlighten me a lot... Thanks :)
Bit shift is awesome. Nice job
awright, thanks!
What the hell is wrong with you? This is literally my previous fork :\
The discourse section on the original kumite creator (@burlacu.valeri) has the creator replying to someone that the expected behaviour for empty strings should be "TRUE". I think i might have misinterpreted that and gave "TRUE" if even one of them is empty. I'll change my code. Thanks for catching that!
Who said that? The original kumite clearly says "verify if the sum of the letters of the name #1 equals the sum of the letters of the name #2".
That's a bitwise operator - the left bit shift.
What kind of magic is this?