-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
面试题14剪绳子动态规划 #74
Comments
想通了,这里是不剪的时候的值,建议在代码里面加个注释,不然很难理解 |
楼上的说法是有问题的,题目中明确要求剪为m段,并且m>1,说明至少需要剪一刀。因此不能理解为不剪的时候的值。 |
f(3) = 2 , products[3]=3 那范围为什么确定是>4呢? 我认为这里还是要说明下 |
没问题,这些是在n>=4时,在至少已经剪过一次前提下的最优解; |
The text was updated successfully, but these errors were encountered: