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.
Thank you! I got used to the fact that the minimum and maximum numbers are in the array itself. I should have read the condition more carefully.
Thanks again!
The instructions say: "You are given an array containing all integers from 1 to N, except one that is missing."
In this exemple, N=6 (it is the size of the input array) so the missing number is indeed 6.
Third test in attempt - [2,3,1,3,4,5] "pending" [6,3] ???
How can that be? Where does 6 come from?
when you want to solve a problem, better way is using the fundamentals of the language not the built-in function.
Amazing!!
Thankfully the tests don't test for "sample", which is good because the behavior of the function when text is in the array isn't specified anyways, so assuming they are truthy is the only sane way to go.
This comment is hidden because it contains spoiler information about the solution
So there's clearly room for more wine... uh, paper :D
the glass is twice as big as it needs to be
Is the glass half empty or half full ?
Be optimistic, mate! :D
Too late for me :p
no hardcoded value please
Learned something new. Thank you!
This is a whole nother level. I had a function for line 3 and like 3 functions for line 6.
Using destructuring is cool :)
I like this wit
Loading more items...