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.
yes you are right,
thanks for the hint
I will update the code
yes thank you ,I pass the test after understand the problem
I figure where is the problem
if 1 =100
1=100 so 1 1 is 200 and 5 = 50
this is the problem hope it will help someone
is there any wrong with kata test please answer ?
this is the count for each score 1 1 3 4 5 it should give 50 but test ask it should be 250
[ { count: 2, score: [ 1, 1000 ] },
{ count: 0, score: [ 2, 200 ] },
{ count: 1, score: [ 3, 300 ] },
{ count: 1, score: [ 4, 400 ] },
{ count: 1, score: [ 5, 500 ] },
{ count: 0, score: [ 6, 600 ] } ]
score 1 1 3 4 5
Expected: 250, instead got: 50
This comment is hidden because it contains spoiler information about the solution
I like your answer very clever keep going