CS计算机代考程序代写 algorithm /*

/*
* max_profit.cpp
* Univeristy of Michigan, Ann Arbor
* EECS 281 F19E1 Q26.
* SUBMIT ONLY THIS FILE TO GRADESCOPE.
*/

// Common #includes for convience.
// No need to use them.
// Remove any of them if you want.
#include
#include
#include
#include
#include
#include
#include #include #include

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

#include “max_profit.h”

using namespace std;

double max_profit(std::istream &stock_in, int k) {
// TODO
return 0;
}