asked 121k views
3 votes
Recursion is a natural use for a _____ (stack or queue)

asked
User Merlino
by
8.3k points

1 Answer

4 votes

Answer:

Stack

Step-by-step explanation:

Any function that call itself can be regarded as recursive function, it should be noted that Recursion is a natural use for a stack, especially in the area of book keeping.

Recursion is very important because some of problems are usually recursive in nature such as Graph and others, and when dealing with recursion , only base and recursive case is needed to be defined.

Some areas where recursion is used are in sorting and searching.

answered
User Changwang Zhang
by
8.1k points