Ad
  • Default User Avatar

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

  • Default User Avatar

    str(digits[x]*2) - gives you a string, it consist of one or two characters

    map( int, str(digits[x]*2) ) - transform your string to an int array

    sum ( ---- ) takes sum of the elements, if the multiplication result is single digit then sum of array's elements equal to the element value. if the multiplication result is two digits then it takes sum of it, like should be described by the algorithm