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.
Im with you bro
OK OK
Hey, that's why the kata's here! We can all get better. ;)
TOOK ME WAY LONGER THAN I'D LIKE TO ADMIT.
I STARTED QUESTIONING MY KNOWLEDGE OF THIS LANGUAGE
GOD IM BAD
looking at the test cases seems like we need to change the order in the initial array, not return a new array with swapped values.
Description updated.
should explain in more detail what value is returned in the original clamp function (return the number input if the number falls within bounds else return either the lower bound or upper bound)
seconded
meh, I'd rather stick to exactly how the question was laid out
ಠ_ಠ
What a man of wisdom
Ah yes, I just figured since the email landed me under the python section thats what you were doing.
1e21
in javascript as far as I know is the same as1000000000000000000000
, so it should probably work as you said, yes. My solution does work, but I don't think it's necessary to change the description and test cases. I think the majority of people read "non-negative integer", they don't think of exponential notation.This comment is hidden because it contains spoiler information about the solution
LOL
This comment is hidden because it contains spoiler information about the solution
Loading more items...