From da223542ffc7e77c03b0446cb80a417c15490ab1 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 12 Oct 2023 07:44:33 -0400 Subject: [PATCH] fixing subscripting issue --- lectures/13_problem_solving_I/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/13_problem_solving_I/README.md b/lectures/13_problem_solving_I/README.md index 9db842b..8bc3a74 100644 --- a/lectures/13_problem_solving_I/README.md +++ b/lectures/13_problem_solving_I/README.md @@ -198,7 +198,7 @@ bool search_from_loc(loc position, const vector& board, const string& wo }--> ## 13.6 Exercise: Maximum Subsequence Sum -- Problem: Given is a sequence of n values, a0, . . . , an−1, find the maximum value of Σi=jk over all possible subsequences j . . . k. +- Problem: Given is a sequence of n values, a0, . . . , an−1, find the maximum value of Σi=jk over all possible subsequences j . . . k. - For example, given the integers: 14, −4, 6, −9, −8, 8, −3, 16, −4, 12, −7, 4 The maximum subsequence sum is: 8 + (−3) + 16 + (−4) + 12 = 29. - Let’s write a first draft of the code, and then talk about how to make it more efficient.