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.
Hey guys,
what do you think about that method?
What could make my Javascript code pass all the basic tests and fail all the random tests? :-(
^ That
in JS
on console.log(res) I see a rigth answer, but return same result in function take a error and show nonchanged (arr)
exp =
AB
= 2079
Expected: ''27 * 77 = 2079'', instead got: ''63 * 33 = 2079''
Both results are correct. And in first test
ABC
= 39483
Expected: ''123 * 321 = 39483'', instead got: ''321 * 123 = 39483''
also both results are correct. Сan be excluded from tests examples that have an ambiguous solution?
Please read posts below. The question has been put and answered many times.
Test Case Number 2:
WHY ==> 'Elizabeth' should equal 'Matthew'
i am calculating their values to be both 485, so alphabetically is Elizabeth 1st.
i am getting 66 Passed Tests and 2 Failed, both same case as this.
For me it is. Thanks.
OK. I hope it's correct now:-)
That's better, one last thing I would change is make all PauL's the same capitalization.
See above.
Description modified. Could you have a look? Thanks!
Rename the partial value of the instructions to something else, n is already used as a function's argument and that's a little confusing.
Something like that or whatever name not used in another part you want would be fine.
There are two
n
s there, one should be renamed.Like that ^.
Hi, I'm definitely missing something, so could someone please clarify? -
If n is calculated by the first name length + rank of each letter in the name, why is n provided as an argument in the function?
I would think we would get the string argument, weights argument and then calculate n ourselves, using it to calculate the 'winning number'...
Thanks for your help
Loading more items...