-
Notifications
You must be signed in to change notification settings - Fork 3
Labels
Description
You have tested the function with different inputs, but you found that it sometimes returns incorrect results. For example, when you enter {1, 2, 3, 4, 5}, the function returns 4 as expected, but when you enter {5, 5, 5, 5}, the function returns -2147483648 instead of 5.
solve the following issue .
NOTE : you can not change the logic of all code .
Try to fix with minimum changes.