From 058b2ab438d53a1a4526591919f39099917fd48d Mon Sep 17 00:00:00 2001 From: Pardeep Bhatt Date: Sat, 26 Sep 2020 00:33:24 +0530 Subject: [PATCH] Update dynamic_programming/cut_rod.cpp Co-authored-by: David Leal --- dynamic_programming/cut_rod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic_programming/cut_rod.cpp b/dynamic_programming/cut_rod.cpp index 3a1c9047e..4b4f34a41 100644 --- a/dynamic_programming/cut_rod.cpp +++ b/dynamic_programming/cut_rod.cpp @@ -68,7 +68,7 @@ int maxProfitByCuttingRod(const std::array &price, const int n) { * @brief Function to test above algorithm * @returns void */ -void test() { +static void test() { // Test 1 const int n1 = 8; // size of rod std::array price1 = {1, 5, 8, 9, 10, 17, 17, 20}; // price array