You need to sign in or sign up before continuing.×
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.
42 is only the correct answer for the example test...
Thank you!
I thank you very much!
That explanation is definitely clearer.
As a massive English nerd, I would probably go a step further, phrasing it:
Find the greatest difference in length for any possible pairing of strings between Array1 and Array2.
or
Find the greatest diffence in length when comparing strings in Array1 to strings in Array2.
Also, thank you g964 for your many wonderful kata contributions.
For every string x in the first array and for every string y in the second array calculate abs(length(x) − length(y)) and then take the max of these numbers.
Is that clearer?
Yeah the instructions are AWFUL. Can't they elaborate the instructions ? And why can't we view the full tests ? There's only one test case where as "submitting" runs extra test case which aren't available to us. If we could view them, I can actually decipher what needs to be done, to excuse the poorly written instructions...
This comment is hidden because it contains spoiler information about the solution
The whole point of the exercise was to make sure people understand how to pass in an argument...
If no argument, method should fail.
It's broken in Ruby. Works fine in other languages
Agreed, this one's broken in Ruby. Worked in js...
Don't understand... I returned 42 but the tests failed. Also the test gave different failures even though I was running the same code...