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.
this is still the case for this Kata. THank you for giving an alternative
i think i need more expliaination anyone here to explain??
This kata's about coding an algorithm. It is not supposed to address anyone's inquiries in their inability to use part of the language features they're using.
You should bring that to somewhere else appropriate instead.
I have to say i am a bit lost here. I try the kata in Java. After some research i found out that there is something called default method. But i still don't know how i should actually start to code it or even how i should use the default in the first place.
Maybe some explanation about the method and how it works might be a good idea?
If you didn't guess. I am pretty much a total beginner.
Fixed.
Added tests with
0
sSometimes the tests generate no zeroes which allows solutions to do incorrect short-circuit evaluation.
That's actually an issue.
The user can modify the input.
Right, fixed!
JohanWiltink's suggestion is a good improvement since it corrects the confusion around the second and third parameter.
And my confusion came from the examples where a third parameter isn't included AND one array is shorter than the other one, in which case the padding is done using 0s. I can see how that was a misinterpretation on my behalf.
third parameter is missing in javascript sample code
ok. repeat kende ik niet.
dat is niet het eerste wat in mijn hoofd komt nee. Wel gek eigenlijk. Short circuit evaluation vind ik wel leuk (al is het niet heel duidelijk helder meestal). Booleans van elkaar aftrekken is dan nog een stap verdier, die had ik eerlijk gezegd nog nooit bedacht...
He, jij bent niet van
.sort( (a,b) => b.points-a.points || (a.name>b.name) - (a.name<b.name) )
?Loading more items...