Triangle Quest 2

  • + 0 comments

    It's a simple math problem:

    First, recognize the palindrome has this format: 1 * 1 = 1 11*11 = 121 111*111 = 12321

    Second, create a formula with a given value of N ((10**N) - 1) // 9

    Now you can square the formula by 2