Given two integers dividend and divisor, return the quotient after dividing dividend by divisor.
The division result should be truncated toward zero.
You must not use multiplication, division, or modulo operators.
Note: Assume the result fits in a
-bit signed integer.
Constraints:
dividend, divisor
divisor != 0
Given two integers dividend and divisor, return the quotient after dividing dividend by divisor.
The division result should be truncated toward zero.
You must not use multiplication, division, or modulo operators.
Note: Assume the result fits in a
-bit signed integer.
Constraints:
dividend, divisor
divisor != 0