재귀(Recursion)
Last updated
Last updated
자기 자신을 호출하는 과정/함수(A process/function that calls itself)
입력값이 다른 동일한 함수를 base case
에 도달하기 전까지 호출 (Invoke the same function with a different input until you reach your base case)
Base Case
: 재귀가 멈추는 조건 (Condition that recursion ends)
Recursive Case
: 재귀가 시작하는 조건(Condition that resumes recursion)
Base Case
Return