leetle

43. Divide Two Integers

64%

Write a function solve that divides two integers without using multiplication, division, and mod operator. Return the quotient as an int after dividing. Assume 32-bit signed integers.

Example:
Input: 10, 3
Output: 3

Make sure you return your solution, don't print!


def solve(dividend, divisor):
    pass