mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-05 11:40:46 +08:00
committed by
GitHub
parent
80da46c3c0
commit
3ef35382a9
@@ -21,7 +21,7 @@
|
||||
/**
|
||||
* @brief This function implements the above algorithm
|
||||
* @param array of numbers containing the maximum jump (in steps) from that index
|
||||
* @return returns bool value whether final index can be reached or not
|
||||
* @returns bool value whether final index can be reached or not
|
||||
*/
|
||||
bool canJump(std::vector<int> nums) {
|
||||
auto lastPos = nums.size() - 1;
|
||||
|
||||
Reference in New Issue
Block a user