Updated changes

This commit is contained in:
Rakshaa Viswanathan 2020-09-01 00:22:20 +05:30 committed by GitHub
parent 8622683556
commit 84766d9443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }