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.
I'll say, but keep in mind that this approach is more concise and efficient than your method, especially for larger numbers.
perfect
A great job using a variety of programming tools. Congrats !! <3
Wow... that's insane
Very clever!
в отрицательных числах пос.ледовательно кажется бывает в обратном порядке. -4 -3 -2 -1- 0 1 2 3 4 . но в данной задаче условие же другое...
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
Loading more items...