摘要:
DP assume the indices of the array are from 0 to N - 1. So let's define DP[i] to be the length of the LIS (Longest increasing subsequence) which is en 阅读全文
摘要:
你会发现欸, 程序怎么突然挂了 异常退出 那是因为上面的程序 vector 只是声明而已, 并没有开辟内存 你有如下两种选择 1) If you know the size of vector will be (in your case/example it's seems you know it) 阅读全文