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.
keep getting error that num.split('') is not a function ofr javascript. I know it should be working
In the examples, I don't understand how the return is influenced by 'a1'. Can someone please clarify what they are being sorted based on?
I am a bit confused while trying this on ruby -- third sample test:
Test.assert_equals(best_match([1, 2, 3, 4, 5],[0, 1, 2, 3, 4]),4)
Shouldn't the return be 5 rather than 4? Because 1-0, 2-1, 3-2, 4-3 and 5 - 4 all = 1 , and weren't more points scored in the 5th match rather than the 4th?? What am I missing?
That's the only test that is failing for me - others with a similar scenario come through as correct.
Thanks guys, I was ablet to figure out that it wasn't quite working correctly with capital letters from your comments.
This comment is hidden because it contains spoiler information about the solution
Good solution from a musician.
This comment is hidden because it contains spoiler information about the solution
Was anybody able to do this in ruby without it timing out?
My code seems like it is correct (although I'm sure it can be refactored) - but it times out even though the tests that it actually runs all pass. Will leave my code in comment.
This comment is hidden because it contains spoiler information about the solution
I passed all the sample tests, but am failing the third 'attempt' test (ruby).
It says: Should return: '10' - Expected: 10, instead got: 0
I can only guess from that that it's failing when there are two wilds and something else, but when I test that on my own it works. Any help figuring out what that is testing for?
same for me with ruby, I'm passing all the tests but getting a sigkill error for it not passing fast enough.
This comment is hidden because it contains spoiler information about the solution
Can someone help lead me in the right direction on what this error means? It's in the section for "null or empty"
"#
sum_array'
block (2 levels) in'"
I'm guessing it's not working if there is no array?