Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
They didn't mention that, but i think we should handle this case by getting the area that has the maximum sum which will be the smallest negative elementonly.
Example:
Input:
-11 -2 -12
-2 -1 -3
output:
1 1 1 1
I am not sure, but I think this assumption makes sense.
Good luck!
Regards,
Mohamed
-1 is the largest negative number we can return it in case all the matrix is negative, if the matrix has a zero which is considered neither negative nor positive then we can return the zero as the largest integer or the -1 and both are correct as discussed by some algorithms