10 ms·
On count == 1, the winner gets set to the first element, true. But the function does not return yet! So the value might get overwritten during the remainder of
by kleiba2 6d ago
On count == 1, the winner gets set to the first element, true. But the function does not return yet! So the value might get overwritten during the remainder of the for-loop.