Update greedy_algorithms/jumpgame.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Rakshaa Viswanathan 2020-10-02 10:36:01 +05:30 committed by GitHub
parent 4b6eb0cbc9
commit f308a5f6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.