Divide Two Integers

Divide two integers without using multiplication, division, or modulus. Use bit shifting to subtract the divisor in exponentially growing steps, then accumulate the quotient. Handle sign and 32-bit overflow edge cases.

Examples
Input: [10,3]
Output: 3
Hints

Divide Two Integers

Divide two integers without using multiplication, division, or modulus. Use bit shifting to subtract the divisor in exponentially growing steps, then accumulate the quotient. Handle sign and 32-bit overflow edge cases.