Dynamic Programming In Data Structures - Study Mode

[#151] Consider the strings "monday" and "tuesday". What is the edit distance between the two strings?
Correct Answer

(B) 4

[#152] Given an array, check if the array can be divided into two subsets such that the sum of elements of the two subsets is equal. This is the balanced partition problem. Which of the following methods can be used to solve the balanced partition problem?
Correct Answer

(D) Dynamic programming, Recursion, Brute force

[#153] What is the time complexity of the recursive implementation used to find the nth fibonacci term?
Correct Answer

(D) Exponential

[#154] The number of increasing subsequences with the longest length for the given sequence are: {10, 9, 8, 7, 6, 5}
Correct Answer

(D) 6

[#155] What is the time complexity of the brute force algorithm used to find the length of the longest palindromic subsequence?
Correct Answer

(B) O(2 n )