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've enjoyed this kata. Thanks.
Really cool kata. Thanks myjinxin.
You are not tackling the problem correctly.
The fact that the half of the length of the array equals the size of the set, doesn't mean that every number in the set occurs twice.
Typos on the description ...
-The first two will always be arrays consisting of intigers => integers
-Reminder instead of remainder
Max Buffer reached: Too much information has been written to stdout.
Now it's fixed. Thanks!
Regarding the test cases ...
1º calculateScore([2, 3, 5], 3) => Expected value should be -40, not -30, as there are 3 wage cards.
2º Test cases are not properly expressed. You are able to pass them no matter what you return.
Test.assertEquals(calculateScore([], 0), 0)
Test.assertEquals(calculateScore([2,3,5], 3), -40)
Actually you are right. Thanks for the tip!
A: 30 points B: 20 points C is 10 points D
But you use other letters like F, G ...
Sample test case is wrong.
1º It says ... "Should return: []" when in fact you should return ['lie', 'true']
2º You should use Test.assertSimilar instead of Test.assertEquals
Nice kata. I think this picture might help to better understand the problem. https://minecraft.gamepedia.com/media/minecraft.gamepedia.com/0/0b/Beacon_Pyramid_Arangements_12w32a.png?version=8a116b7d7f20c58b7138fd0ae2190ec7
Missing comma in the first sample test case!
1º Wrong description. You have to return a string with those chars on an even position
2º Your test cases expect an array, not a string
Hint
This kata needs more test cases ...
Loading more items...