mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
main_func_Update greedy_algorithms/jumpgame.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
639b3ac577
commit
11e9823558
@ -32,6 +32,10 @@ bool canJump(std::vector<int> nums) {
|
||||
return lastPos == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main(){
|
||||
//Sample test case
|
||||
std::vector<int> num={4,3,1,0,5};
|
||||
|
Loading…
x
Reference in New Issue
Block a user