Credit Suisse Interview Question: What are recursive function a... | Glassdoor

Interview Question

Senior Software Engineer Interview Research Triangle Park, NC

What are recursive function advantage and disadvantages

Answer

Interview Answer

1 Answer

0

Recursive function/method is one which call itself repeatedly. Advantage is usually simplicity. The main disadvantage is often that the algorithm may require large amounts of memory if the depth of the recursion is very large. Examples are binary search, factorial etc.

Interview Candidate on Mar 17, 2011

Add Answers or Comments

To comment on this, Sign In or Sign Up.