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 am not worthy.... I was happy with my clunky solution, but this is just.... I feel inspired!
I passed all the test cases, but when I submit I fail on the first one. Using console.log I get the input of the candidates array as:
[ { name: 'Bob', scores: [ 10, 65 ] },
{ name: 'Bill', scores: [ 90, 5 ] },
{ name: 'Jennifer', scores: [ 55 ] } ]
This test should fail because it has invalid input (Jennifer has only one score) according to the kata description criteria: "Please note that inputs may be invalid: in this case, the function should return false". However, it expects "Bill" as the right answer.
This comment is hidden because it contains spoiler information about the solution