Question: how to convert this function from recursive to stacking def f ( a , b ) : if a < = b: m = (
how to convert this function from recursive to stacking
def f ( a , b ) :
if a < = b:
m = ( a + b ) / 2
f ( a , m - 1 )
print ( m )
f ( m + 1 , b )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
