Changed header files

This commit is contained in:
Rakshaa Viswanathan
2020-09-01 00:08:54 +05:30
committed by GitHub
parent 0f2ce72be4
commit 2ffc847828

View File

@@ -3,7 +3,9 @@
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.*/
#include <vector.h>
#include <vector>
#include<iostream>
using namespace std;
bool canJump(vector<int>& nums) {
int lastPos = nums.size() - 1;
for (int i = nums.size() - 1; i >= 0; i--) {