Question: I ' m completing a C + + program call function, please read the following requirements and complete the call function based on the code
Im completing a Cprogram call function, please read the following requirements and complete the call function based on the code that has already been completed.
#include
using namespace std;
const int MAXNUMTOWER ;
Const int MAXNUMFLOOR ;
const int MAXENCOUNTERLENGTH ;
Helper function to copy values an array to another. Provided.
void copyfloorint to const int from
for int i; i higheststrength
higheststrength recursionresult;
copyfloorbestfloorpath, recursionfloorpath;
If the current tower is fully explored, backtrack the best path for the current floor and call the recursive function for the next tower
if exploredfloorcount
TODO: Backtrack the best path for the current tower using a line of code Use copyfloor
End of TODO
int floorexploredMAXNUMFLOOR;
int floorpathMAXNUMFLOOR;
TODO: Complete the recursive function call to move to the next tower
findpath;
End of TODO
TODO: Backtrack the best path for the current floor selection using a line of code Use copyfloor
End of TODO
return highest strength;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
