Update greedy_algorithms/jumpgame.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Rakshaa Viswanathan
2020-10-02 10:35:41 +05:30
committed by GitHub
parent 3c9d40c29e
commit 4b6eb0cbc9

View File

@@ -17,7 +17,16 @@
#include <iostream>
#include <cassert>
/**
* @namespace greedy_algorithms
* @birief Greedy algorithms
*/
namespace greedy_algorithms {
/**
* @namespace jump_game
* @brief Functions for the [jumping game](https://leetcode.com/problems/jump-game/) problem
*/
namespace jump_game {
/**
* @brief This function implements the above algorithm
* @param array of numbers containing the maximum jump (in steps) from that index