← ALL NOTES
Math

29. Divide Two Integers

Division is repeated subtraction, but subtracting one divisor at a time is O(dividend) — hopeless for large values. Speed it up the way binary long division does: double the divisor with left shifts…

Loading…