Ad
  • Default User Avatar

    You were right about the description though, thank you!

  • Custom User Avatar

    Ah, I see. My mistake.
    Thanky you, Blind4Basics.

  • Default User Avatar

    nope, you're wrong:

    • from 18 you remove 4 and 6. Total removed = 4+6 = 10
    • or the other way around: from 18 you kept 4 and 4. Total removed = 18-4-4 = 10

    here, you're counting the number of removed characters by subtracting the number of REMOVED chars from the total.

  • Custom User Avatar

    Hello guys,
    I think that there is a mistake in the sentence: "... and 2 letters from 'allo' ('ao') ... therefore the result is 7 (the anagram is 'lo'".
    It should be: "... and 2 letters from 'allo' ('al').

    Besides, I think that there is a mistake in the tests:

    {"codewars", "hackerrank"}
    Total letters = 18
    anagram = 'acer'
    letters to remove from "codewars" to get 'acer': 'odws' --> 4
    letters to remove from "hackerrank" to get 'acer': 'hkrank' --> 6
    So,the results should be 18-10=8 and not 10.

    Thank you and Cheers,
    Manel