Ad
  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Description says:

    return: the firstname of the participant whose rank is n (ranks are numbered from 1)

  • Custom User Avatar

    The frustration is real. For the first time, I struggled to understand a kata description.

    Would appreciate any help. My logic:

    • Calculate the sum of letters per name
    • Add the length of the name to that sum
    • Multiply the sum by corresponding weight (we) - get the winning number
    • ???

    At what point should I engage the 3rd argument n ?