Ad
  • Default User Avatar

    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

  • Default User Avatar

    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.

  • Default User Avatar

    Same here, returns and logs correctly on my machine, but returns 'undefined' when attempting.