diff --git a/greedy_algorithms/jumpgame.cpp b/greedy_algorithms/jumpgame.cpp index e74f74d29..b0b015a6a 100644 --- a/greedy_algorithms/jumpgame.cpp +++ b/greedy_algorithms/jumpgame.cpp @@ -39,7 +39,7 @@ bool canJump(std::vector nums) { * @brief Function to test above algorithm * @returns void */ -void test(){ +static void test(){ //Test 1 std::vector num1={4,3,1,0,5}; assert(canJump(num1)==true);