The dividend is -2147483648 and the divisor is -1. The test case fails because the expected test case answer is 2147483647.
Shouldn't the answer be 2147483648?
INT_MAX is 2147483647, so you should return it if the answer is more than it.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.