Answer overflows a 32 bit integer


  • 0
    L

    For example, try m=35, n=35. The expected answer says -1758738716. A 64 bit integer as the return type would suffice for this problem.


Log in to reply
 

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