Please solve the problem that the answer is overflowed

  • 0

    The topic note said that

    Note: m and n will be at most 100.

    but if we input n=m=100,expected answer is -2129403600,which is overflowed.
    please solve that,use long long instead of int.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.