When running the custom test cases and setting
n=453, both myself and the
Expected answer return
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.