coins/TwelveCoins.cpp
/**
 * @brief: Creates a new subvector of the vector passed in and the desired index range.
 * 
 * @return:Returns a subvector containing only the index range specified.
 */
@brief: Creates a new subvector of the vector passed in and the desired index range.

@return:Returns a subvector containing only the index range specified.
@brief : Creates a new subvector of the vector passed in and the desired index range . @return : Returns a subvector containing only the index range specified .
std::vector<int> TwelveCoins::slice(std::vector<int> v, int m, int n)
{
    auto first = v.cbegin() + m;
    auto last = v.cbegin() + n + 1;
    std::vector<int> vec(first, last);
    return vec;
}
std :: vector < int > TwelveCoins :: slice ( std :: vector < int > v , int m , int n ) { auto first = v . cbegin ( ) + m ; auto last = v . cbegin ( ) + n + 1 ; std :: vector < int > vec ( first , last ) ; return vec ; }
@brief: Creates a new subvector of the vector passed in and the desired index range.
@brief : Creates a new subvector of the vector passed in and the desired index range .