DEV Community

Discussion on: Simple technical questions

Collapse
 
sanderintveld profile image
Sander in 't Veld

Wait, does "only one loop" here mean only one for-loop, or only visiting each element once? Because I'm pretty sure the latter is impossible... right?

Collapse
 
diaakhateeb profile image
Diaa Elkhateeb

one for-loop.