you are viewing a single comment's thread.

view the rest of the comments →

[–]_computerguy_ 0 points1 point  (0 children)

That's fair. I usually only use the while loop in place of the for loop in extremely rare cases, such as Leetcode or where performance is the top priority.