Ad
  • Custom User Avatar

    Please use a spoiler flag when you post code somewhere (I put the flag on for you). Raw code is not displayed properly in markdown, so please use markdown tags as explained there to format your code for it to be usable, as explained there: https://docs.codewars.com/training/troubleshooting/#post-discourse

  • Custom User Avatar

    You need to return an object

    For example the object of the first test will return { "a": 1}

    At the beginning of the program start will an empty object e.g dict = {}

    If the first command is mov a 5 (reg = a and val = 5)

    then a code like this dict[reg] = dict[val] will set the object to { 'a': 5}

    Hope this helps.

  • Custom User Avatar

    I agree! Adding 'Score of a word is sum of scores of its letters' would definitely help.

  • Custom User Avatar

    iirc if you link your github it takes the picture from that account.

  • Custom User Avatar

    I can't follow your logic; "scores" and "words" have no natural connection. That said, maybe your difficulty lies in the term "order", which you introduced but is not present in the description. "Bath" is 'smaller' than "Cat" only if you consider lexicographic ordering, which is not asked for.

  • Custom User Avatar

    Honestly, I think that is self explanatory. In a football/soccer match, the highest scoring team is the team with the highest sum of individual goals. A goal is 1 point, so there is no other way to compare scores. How else would you interpret the question?