Update return

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Rakshaa Viswanathan
2020-09-06 09:50:16 +05:30
committed by GitHub
parent 80da46c3c0
commit 3ef35382a9

View File

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