Structure of Recursion: Base case
- Base case(s) : simple problems that we have answers to trivially
- Base case(s) stops the program from going to
Case study _ factorial
Q What is the simplest case that I know the answer to ?
A 0! is 1 by definition. 1! is also 1 by definition
Is there any simple
'University of California, Berkeley > ElectricalEngineering & ComputerSciences' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
Sequence & Data Abstraction (0) | 2019.07.09 |
---|---|
Week 3 (0) | 2019.07.09 |
Recursion Examples (0) | 2019.07.04 |
textbook _ final (0) | 2019.07.03 |
textbook _ mid (0) | 2019.07.03 |