New course! Every coder should learn Generative AI!
Try a free lesson0
Break statement vs Boolean terminate
which is less costly inside the loop ?
1 Answer
0
A break if you know exactly when it should terminate. Especially helpful in algorithms
which is less costly inside the loop ?