We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
“1.2 基本思路”中,伪代码内层循环用的是
for v ← C_i to V
因为这里还没有提到优化空间复杂度,用的是二维数组,所以当 V<C_i 时,要把 F [i − 1, v] 复制到 F [i, v]。
The text was updated successfully, but these errors were encountered:
我今天也看到这个问题,想了好久发现这个不适合2维数组的情况,2维的内循环应该是 for v <- 1 to V
Sorry, something went wrong.
赞同,我按照二维的写WA了,手推了下过程才发现问题所在。
的确如此
No branches or pull requests
“1.2 基本思路”中,伪代码内层循环用的是
因为这里还没有提到优化空间复杂度,用的是二维数组,所以当 V<C_i 时,要把 F [i − 1, v] 复制到 F [i, v]。
The text was updated successfully, but these errors were encountered: