Project Euler #164: Numbers for which no three consecutive digits have a sum greater than a given value.

  • + 0 comments

    Simple digit dp problem. Constraints on M are very less. Can be upto 1 million according to my solution.