Project 3 - different recursive implementation

In C(3) , are we allowed to use a different recursive implementation from the one shown in figure 1 in the pdf file ? ( with same requirements for cost and delay, and using the black box only once) .
We have almost the same implementation but with different exits (from the outputs of the black box), but it still implements the function correctly.