Dynamic Programming In Data Structures - Study Mode

[#181] In the worst case, the minimum number of insertions to be made to convert the string into a palindrome is equal to the length of the string.
Correct Answer

(B) False

[#182] What is the time complexity of Kadane's algorithm?
Correct Answer

(B) O(n)

[#183] You are given infinite coins of denominations 1, 3, 4. What is the total number of ways in which a sum of 7 can be achieved using these coins if the order of the coins is not important?
Correct Answer

(C) 5

[#184] Longest common subsequence is an example of . . . . . . . .
Correct Answer

(B) 2D dynamic programming

[#185] What is the time complexity of the brute force implementation of the maximum sum rectangle problem?
Correct Answer

(D) O(n 4 )