mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Updated changes
This commit is contained in:
parent
8622683556
commit
84766d9443
@ -19,6 +19,6 @@ bool canJump(std::vector<int> nums) {
|
|||||||
int main(){
|
int main(){
|
||||||
//Sample test case
|
//Sample test case
|
||||||
std::vector<int> num={4,3,1,0,5};
|
std::vector<int> num={4,3,1,0,5};
|
||||||
cout<<canJump(num); //Should display true, as when you take one step from position 0, you reach position 1, from which 3 steps lead you to the destination
|
std::cout<<canJump(num); //Should display true, as when you take one step from position 0, you reach position 1, from which 3 steps lead you to the destination
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user