Hey guys, i’ve been working through the Intermediate algorithm challenges for the front end cert, and i’m almost finished them all, but one thing i’ve noticed is that for almost all of these challenges i’ve been using the traditional For loop to solve them, and sometimes I worry that I may be over using this feature and that perhaps there is a simpler way to write the code. Sometimes my code will consist of for loops within for loops, and then later another for loop, lol.
Is this considered bad practice? What other things should I be trying? Cause a lot of the challenges are just along the same lines of ‘search through an array… etc’, so it seems like for loops are necessary for almost everything.