Pregunta de entrevista de Liberty Mutual Insurance

Find the bug in this code that needs to find the maximum value in an array

Respuesta de la entrevista

Anónimo

2 ene 2020

The for-loop was setting the default max to 0, needed to be index 0

1