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