← Questions
Divide two integers without division
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Divide two integers without using multiplication, division or the modulo operator, truncating toward zero. Do better than subtracting the divisor one copy at a time by doubling it with bit shifts, and handle negative numbers and overflow at the 32-bit limits.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
