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.
Does this code allow to check if the array is empty or not? E.g., when it contains neither element...
I tried that but set the k 0 in the begining... without looking your code of course. Well done mate!
It was 15 months ago, so I asked this question 2 months after I became a member of codewars.
Chill out mate!
Bruh that's the ternary operator.
You are 3kyu and u don't know how to use it?
what is the error ? your program may not be able to resolve within the time limit.
i did it like you said after long effort as far as i remember
Not sure what you mean, but if you're treating the numbers as integers you might find more success treating them as longs instead.
This comment is hidden because it contains spoiler information about the solution
hi,
read the description again, input string '59544965313' is one number (weight of only one member), so the function should return the same number
Also don't know...
.
For input string: "59544965313"
What's the problem ???
[954750061378312192, 6, 0] [954750061378312192, 5, 0] is there any differences between these two ?
I wrote literally same code without looking at your code xd. Good job!
This comment is hidden because it contains spoiler information about the solution
Loading more items...