Closed wanghuahui closed 3 years ago
Thanks for this finding, however, it's still wrong.
The original test cases added more unreasonable cases. such as:
[1,4,6,7,8,20]
[7,2,15]
can you impage that? the 7-days ticket is cheaper than 1-day ticket...
I will going to fix this problem soon!
MinimumCostForTickets.cpp
dp[j-1]
有越界,做了如下修改