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.
OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
For every tuple (a,b) there is a repeating pattern in the sequence...
(@chrono: yet another oversensitive user... ;) )
@RenierC QuothTheRaven42 was saying I'm passive-aggresive and blocked me, I don't know why. You can see my few interactions wth him: here, here, and here
@QuothTheRaven42 I'm not seeing passive aggressiveness, can you elaborate?
Remember the Codewars community is global and we all have different backgrounds and speak different languages natively. So miscommunication happens sometimes. Please try assuming the best intent when communicating on Codewars.
This suggestion got 8 upvotes so it's probably worth updating the description to clarify.
I don't understand why every response he makes is so passive-aggressive. You'd think he hates to responding to people how he acts.
You need to implement something what would work like equivalent of:
So parameters given to your function are position and length of a fragment which you need to cut out from the string formed by concatenation of primes.
Is it clearer now?
The whole array.
Your code is incorrect for inputs like this one:
[ 7, 4, 11, -11, 39, 36, 10, -6, 37, -10, -32, 44, -26, -34, 43, 43 ]
This is the error message:
Expected: 155, instead got: 148
You can see 155 is the right answer adding all the numbers.
If it is random, we can't help you, it'll be different every time, try using
console.log()
to print the input yourself, it'll appear above the test result.Parsing from the left, 3 and 7 are before the second 5. This is the whole sentence:
This is what it means: