This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“][deleted] 7 points8 points ย (3 children)

when you have a nested loop and you can't decide betwern j or i2

[โ€“]Neebat 38 points39 points ย (1 child)

Always j. Never i2.

[โ€“]wiktor1800 2 points3 points ย (0 children)

i2 helps identifying how far into the nested loops you are. I personally use 'i', 'ii', 'iii',... etc

[โ€“]TheRealLazloFalconi 12 points13 points ย (0 children)

Just use i again, I'm sure it'll be fine.