• + 0 comments

    Totally agree. This really shouldn't be categorized as a dynamic programming problem. Without having to worry about big numbers the solution is trival.

    For people using C#, just use System.Numerics.BigInteger.