mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-13 07:25:42 +08:00
committed by
GitHub
parent
df39755e3b
commit
96882beeaa
@@ -39,7 +39,7 @@ bool canJump(std::vector<int> nums) {
|
||||
* @brief Function to test above algorithm
|
||||
* @returns void
|
||||
*/
|
||||
void test(){
|
||||
static void test(){
|
||||
//Test 1
|
||||
std::vector<int> num1={4,3,1,0,5};
|
||||
assert(canJump(num1)==true);
|
||||
|
||||
Reference in New Issue
Block a user