Integer Division Without Using * or /
Divide two integers without using '/' or '*' operators.
Statement
Given two integers, and , return without using division () or multiplication () operators.
Note: Assume that both integers are positive.
Example
Let’s take the example of :
Sample input
Here is the dividend and is the divisor.
7, 2
Expected output
3
Try it yourself
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.