DAYS
HOUR
MINS
SEC
Error
Given two integers dividend and divisor. Find the quotient after dividing dividend by divisor without using multiplication, division and mod operator.
Example 1:
Input: a = 10, b= 3 Output: 3 Exaplanation: 10/3 gives quotient as 3 and remainder as 1.
Example 2:
Input: a = 43, b = -8 Output: -5 Explanation: 43/-8 gives quotient as -5 and remainder as 3.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Yes