Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 160 Bytes

File metadata and controls

6 lines (5 loc) · 160 Bytes

Solution

Finalize where the left most 1 is in bit representation.
Finalize each of the 1 on the right.

time: O(log(dividend / divisor)) space: O(1)