Q. Which of the following problems can’t be solved using recursion?

  • (A) factorial of a number
  • (B) nth fibonacci number
  • (C) length of a string
  • (D) problems without base case
πŸ’¬ Discuss
βœ… Correct Answer: (D) problems without base case
Explanation: problems without base case leads to infinite recursion call. in general, we will assume a base case to avoid infinite recursion call. problems like finding factorial of a number, nth fibonacci number and

Explanation by: Mr. Dubey
problems without base case leads to infinite recursion call. in general, we will assume a base case to avoid infinite recursion call. problems like finding factorial of a number, nth fibonacci number and

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
901
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate