Advantage | Disadvantage |
The code may be easier to write | It is generally slower than non-recursive function |
Reduce the unnecessary calling of function | It may require a lot of memory space to help intermediate result |
Extremely useful when applying the same solution | It’s hard to analyze and understanding the code |