recursion
-
RecursionAlgoDS/Algorithm 2020. 1. 16. 22:56
1. Overview Recursion makes the code easy to write compared to iterative whenever a given problem can be broken down into a similar sub-problem. It has some properties like below: The same operation is performed multiple times with different inputs In every step, we try to make the problem smaller We mandatorily need to have a base condition, which tells the system when to stop the recursion. 2...