How do I write this pseudocode in C++? Function returns two arrays to two initialized arrays
Advertisements I am trying to implement a bottom up approach function to the rod cutting problem and I need to use this particular pseudo-code from the CLRS textbook. In it there two functions and one calls the other in this fashion (r,s) = EXTENDED-BOTTOM-UP-CUT-ROD(p,n) Where r and s are two different arrays. The function also… Read More How do I write this pseudocode in C++? Function returns two arrays to two initialized arrays