Frage im Vorstellungsgespräch bei Amazon

function: Divide 2 number without using divide operator

Antworten zu Vorstellungsgespräch

Anonym

6. Dez. 2010

Subtract the smaller number from the larger number until the result is less than the smaller #. Count the iterations.

3

Anonym

5. Dez. 2010

Right shift the number by 1 bit.