previous | index | next

Another Example

Recall the definition of quotient:

quotient(n,d) = -quotient(n,-d) if d<0
= -quotient(-n,d) if n<0
= 0 if n<d
= 1 + quotient(n-d,d) otherwise


previous | index | next