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.
there is always a easy way.
totally got stumped by an 8 kyu. dam
bro went all the way to docs bro future bright
Nice! The ternary expression makes life way much easier.
Done in this fork
because it slices out the min and max so the sum will be 0 if there are two or less elements in the array.
will return a float not an integer
Good job!
thank you good sir!
This comment is hidden because it contains spoiler information about the solution
nah
He meant the logic of solution would not be valid anymore, but still genius as it has 0.5 =)
This comment is hidden because it contains spoiler information about the solution
Mutating an argument is the worst thing you can do.
LOL I feel the same! Our solutions are exactly the same hahah! As Reda12345 said, we all have diffenrent logic but as long as it works you're good :) I was being harsh to myself too, but i'm going to take my own advice now and be proud of myself for finding a solution at least lol even if it's not the shortest code!
Loading more items...