mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update greedy_algorithms/jumpgame.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
4b6eb0cbc9
commit
f308a5f6c2
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @file
|
||||
* @brief Implementation of an algorithm to solve the [jumping game]((https://leetcode.com/problems/jump-game/)) problem
|
||||
* @brief Implementation of an algorithm to solve the [jumping game](https://leetcode.com/problems/jump-game/) problem
|
||||
* @details
|
||||
* **Problem statement:** Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last index.
|
||||
* This solution takes in input as a vector and output as a boolean to check if you can reach the last position.
|
||||
|
Loading…
Reference in New Issue
Block a user