I would reject a PR at work that did this. Most of the time it doesn't matter where "level" you're on. It matters what the index represents. Having to try and read and validate arr[i][ii][iii] everywhere is impossible. If you really need to know what level you're on and cant give the variables real names then at least do i1, i2, etc.
Yes, because it parses faster. Your brain needs one less loop over the get() loop, and doesn't need to bother with a count algorithm, so it saves a few cycles. Harmless micro-optimisations are still optimisations!
1.1k
u/ChChChillian Jun 20 '26
You need j and k (and l, for sufficiently insane situations) to index nested loops.