im reading about base b expansion of n algorithm and this book is really hard to read and understand, i am not sure what the bottom part means...
http://tinypic.com/view.php?pic=111m7bn&s=6
what does it return when it says return the list of values produced by this algorithm..how would you do this ? thanks
http://tinypic.com/view.php?pic=111m7bn&s=6
what does it return when it says return the list of values produced by this algorithm..how would you do this ? thanks
some method (n,B)/>
if b == 0
return 1
q = n
k = 0
while q does not == 0
a[k] = q % b
q = q / b
k = k + 1
return ???