Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
overflow特殊情况:-2147483648 / (-1) = MAX_INT = 2147483647
1 | class Solution: |
Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
overflow特殊情况:-2147483648 / (-1) = MAX_INT = 2147483647
1 | class Solution: |