Strange behavior at n=452 and n=453, anyone else?

  • 0

    When running the custom test cases and setting n=452 or n=453, both myself and the Expected answer return -1430963646, and -815899761 respectively.

    At n=451, n=454, and all other values, I get the expected behavior.

    Seems to be some sort of 2's compliment overflow or something. Anyone else have any ideas why? Just curious...

    I'm using a DP + recursion approach.

Log in to reply

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