mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 02:02:23 +08:00
Changed header files
This commit is contained in:
committed by
GitHub
parent
0f2ce72be4
commit
2ffc847828
@@ -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--) {
|
||||
|
||||
Reference in New Issue
Block a user