1/7
Flashcards on the topic of Recursion in Java
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Recursion
The process of defining the solution to a problem in terms of itself.
Recursive Method
A method that calls itself.
Base Case
The case in which the problem can be solved without recursion.
Recursive Case
How to solve the problem in all other circumstances using recursion.
Direct Recursion
When recursive methods directly call themselves
Indirect Recursion
When method A calls method B, which in turn calls method A.
rangeSum Method
A method that takes an int array, an int specifying the starting element of the range, and an int specifying the ending element of the range.
Towers of Hanoi
A mathematical game that uses three pegs and a set of discs with holes through their centers.