πŸ“Š Design and Analysis of Algorithms
Q. Given a string, you have to find the minimum number of characters to be inserted in the string so that the string becomes a palindrome. Which of the following methods can be used to solve the problem?
  • (A) greedy algorithm
  • (B) recursion
  • (C) dynamic programming
  • (D) both recursion and dynamic programming
πŸ’¬ Discuss
βœ… Correct Answer: (D) both recursion and dynamic programming

Explanation: dynamic programming and recursion can be used to solve the problem.


Explanation by: Mr. Dubey
dynamic programming and recursion can be used to solve the problem.

πŸ’¬ Discussion

πŸ“Š Question Analytics

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