Ad
  • Custom User Avatar

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

  • Custom User Avatar

    The input are two values, so those tests are different, even if one of the two values is an empty list. Hence the expected answer is different too.

    to leave them bugged and impossible to complete?

    Python Completions 32858

  • Custom User Avatar

    Horrible description. Author's next language to train should probably be English. Tests are just as horrendous. What's the point of spreading the kata over so many languages just to leave them bugged and impossible to complete? Fifth fixed test in Python inputs '[]' and expects to return True, yet 13th fixed test inputs '[]' and expects to return False

  • Custom User Avatar

    i really enjoy while solving this kata, thank you so much author :)

  • Custom User Avatar

    that's a good practice

  • Custom User Avatar

    U can use this method as well -
    const arrayOfDigits = Array.from(String(num), Number);

    here, Array.from() creates a new array from the array-like object, by passing String(num), we convert the number into a string, which splits it into its individual characters
    the second parameter, Number, is a callback that converts each character back into a digit, creating an array of digits from the number

  • Custom User Avatar

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