What is the loop inversion technique?
while (condition) { … } Workflow: check condition; if false, jump to outside of loop; run one iteration; jump to top. if (condition) do { … } while (condition); Workflow: check condition; if false, jump to beyond the loop; run one iteration; check condition; if true, jump to step 3. Comparing these two you can … Read more