You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: greedy_algorithms/jumpgame.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
/**
2
2
* @file
3
-
* @brief Implementation of an algorithm to solve the [jumping game]((https://leetcode.com/problems/jump-game/)) problem
3
+
* @brief Implementation of an algorithm to solve the [jumping game](https://leetcode.com/problems/jump-game/) problem
4
4
* @details
5
5
* **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.
6
6
* This solution takes in input as a vector and output as a boolean to check if you can reach the last position.
0 commit comments