ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
CoinGame.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*---------------------------- File CoinGame.h -----------------------------*/
3
/*--------------------------------------------------------------------------*/
43
/*--------------------------------------------------------------------------*/
44
/*----------------------------- DEFINITIONS --------------------------------*/
45
/*--------------------------------------------------------------------------*/
46
47
#ifndef __ADS_CoinGame
48
#define __ADS_CoinGame
49
/* self-identification: #endif constant */
50
51
/*--------------------------------------------------------------------------*/
52
/*------------------------------ INCLUDES ----------------------------------*/
53
/*--------------------------------------------------------------------------*/
54
55
#include "
ADS/Contract.h
"
56
57
#include <algorithm>
58
#include <cstddef>
59
#include <vector>
60
61
/*--------------------------------------------------------------------------*/
62
/*--------------------------- NAMESPACE ------------------------------------*/
63
/*--------------------------------------------------------------------------*/
64
65
namespace
ADS
66
{
67
89
template
<
class
T >
90
T
coinsInALine
(
const
std::vector< T > & V );
91
92
/*--------------------------------------------------------------------------*/
93
94
}
// end( namespace ADS )
95
96
/*--------------------------------------------------------------------------*/
97
/*-------------------------- IMPLEMENTATION --------------------------------*/
98
/*--------------------------------------------------------------------------*/
99
100
#include "ADS/optimization/impl/CoinGame.tpp"
101
102
/*--------------------------------------------------------------------------*/
103
104
#endif
/* CoinGame.h included */
105
106
/*--------------------------------------------------------------------------*/
107
/*-------------------------- End File CoinGame.h ---------------------------*/
108
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
ADS::coinsInALine
T coinsInALine(const std::vector< T > &V)
the most the first player can be sure of in the game of the coins in a line , both players taking in ...
ADS
Definition
ADT.h:96
ADS
optimization
CoinGame.h
Generated by
1.17.0