我正在寻找有关动态编程问题的一些指示。我找不到任何有关如何解决此类问题的相关信息。
问题
A number is called a special number if it doesn't contain 3 consecutive
zeroes. i have to calculate the number of positive integers of exactly d digits
that are special answer should be modulo 1000000007(just for overflow in c++).
问题可以通过排列和组合轻松解决,但我希望通过动态编程来解决。我无法找到它的最佳子结构或自下而上的方法。