Solution1 for test1 passed.
Solution2 for test1 passed.
Solution1 for test2 passed.
Solution2 for test2 passed.
Solution1 for test3 passed.
Solution2 for test3 passed.
Solution1 for test4 passed.
Solution2 for test4 passed.
Solution1 for test5 failed.
Solution2 for test5 passed.
Solution1 for test6 failed.
Solution2 for test6 passed.
Solution1 for test7 failed.
Solution2 for test7 passed.
Solution1 for test8 failed.
Solution2 for test8 passed.
Solution1 for test9 failed.
Solution2 for test9 passed.
Solution1 for test10 failed.
Solution2 for test10 passed.
Solution1 for test11 failed.
Solution2 for test11 passed.
Solution1 for test1 passed. Solution2 for test1 passed. Solution1 for test2 passed. Solution2 for test2 passed. Solution1 for test3 passed. Solution2 for test3 passed. Solution1 for test4 passed. Solution2 for test4 passed. Solution1 for test5 failed. Solution2 for test5 passed. Solution1 for test6 failed. Solution2 for test6 passed. Solution1 for test7 failed. Solution2 for test7 passed. Solution1 for test8 failed. Solution2 for test8 passed. Solution1 for test9 failed. Solution2 for test9 passed. Solution1 for test10 failed. Solution2 for test10 passed. Solution1 for test11 failed. Solution2 for test11 passed.
测试用例结果如图示。 按照书中算法和代码运行完就是这样,大家运行是这样吗? 还是动态规划有bug?