mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-08 21:19:52 +08:00
Updated changes
This commit is contained in:
committed by
GitHub
parent
8622683556
commit
84766d9443
@@ -19,6 +19,6 @@ bool canJump(std::vector<int> nums) {
|
||||
int main(){
|
||||
//Sample test case
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user