Part 6: Recursion
Recursion is the method that it calls itself
Content of recursive method:
Base case — the case that is no recursive call inside; we can said that if we reach to the base case it used to stop recursive.
Recursive Calls — used to call the current method to repeat itself.
Advantage of Recursion:
- It is a very short program to code, at the same time, it is also efficient.
- Some complex problems which is repetitive form can be easily solved by using recursion.
Disadvantage of Recursion:
- Recursion is difficult to understand and debug
- Use more memory
- Consume more time