Mastery 22 When to use what type of repetition in a program

I already talk about this in the last mastery, well like I said using recursion it will makw our code more easy to understand and shorter tha other repetition, but sometimes is not the better option.So we have to make the code longer and with more statements.If we want that our code be very effective all the time we have to be very carful about what type of repetition we are going to use, because yes the recursion is easier, but when the time is a priority we must not use the recursion type, because of the time, it takes more time than others.

CC BY 4.0 Mastery 22 When to use what type of repetition in a program by Efrain Duarte is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.