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.
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
toofarm, can you explain what you changed? I really don't get what flipped expected values mean. Why would my code work for all sample tests and then fail for every random input.
Same here, returns and logs correctly on my machine, but returns 'undefined' when attempting.