mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update greedy_algorithms/jumpgame.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
3c9d40c29e
commit
4b6eb0cbc9
@ -17,7 +17,16 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cassert>
|
#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
|
* @brief This function implements the above algorithm
|
||||||
* @param array of numbers containing the maximum jump (in steps) from that index
|
* @param array of numbers containing the maximum jump (in steps) from that index
|
||||||
|
Loading…
Reference in New Issue
Block a user