Sollicitatievraag bij Moovit

What loop is more performant in Java: 1. An index loop with a get() call. 2. Iterator loop. The data structure was List

Antwoord op sollicitatievraag

Anoniem

6 okt 2021

is it an Iterator Loop? first option does i actions in the i-th iteration, while iterator does only one action pare iteration