1. recursion and loop [summary]. 1. Recursion
?
12345678910111213 |
Summary: Recursive call only refers to the called function. Note that each call has different levels. Note that each allocation of a form parameter is not the same variable Pay attention to the returned order Image story: There used to be a mountain (1). There was a temple in the mountains (1). There was an old monk in the temple (1) and a small Monk (1 ). The old monk said to the monk: "There was a mountain (2). There was a temple in the mountains (2). There was an old monk in the temple (2) and a little monk (2 ). The old monk said to the monk: "There was a mountain (3). There was a temple in the mountains (3 ). There was an old monk in the temple (3) and a little monk (3). The old monk said to the little monk :......" |
================== Note ======================
Part of the description is from the blue bridge cup explanation video.