Ad
Code
Diff
  • def calculate_2048(size):
        highest = 2 ** (size**2 + 1)
        sumtotal = (2 ** (size**2 + 2)) - 4
        return highest, sumtotal
    • def calculate_2048(size):
    • highest = 2 ** (size**2 + 1)
    • sumtotal = (2 ** (size**2 + 2))-4
    • sumtotal = (2 ** (size**2 + 2)) - 4
    • return highest, sumtotal