Ad
  • Custom User Avatar

    The number 89 is the first integer with more than one digit

    All single digits raised to the 1st power are equal to themselves. I don't get what you're doing there in those examples you mentioned.

    12 -> 1^1 + 2^2 = 5 which is not 12

    45 -> 4^1 + 5^2 = 26 which is not 45

  • Default User Avatar

    Hey! This looks pretty cool, but I'm confused by the examples. It looks like the first example doesn't have any numbers that add together, but it returns the entire range. The second example appends 89 to the list. But in the end, the description said if there aren't any matches (90 - 100), then return an empty list.

    Why is the first example not empty, since it's just 1 - 9? 1^1 + 2^2 = 5, so wouldn't it be 1, 2, 5? And 4^1 + 5^2 = 26, which isn't in the list.

    Super confused lol. Thank you in advance for any help.