Dynamic Programming In Data Structures - Study Mode

[#141] Which of the following is NOT a Catalan number?
Correct Answer

(D) 43

[#142] Find the maximum sub-array sum for the given elements. {2, -1, 3, -4, 1, -2, -1, 5, -4}
Correct Answer

(B) 5

[#143] The dynamic programming implementation of the maximum sum rectangle problem uses which of the following algorithm?
Correct Answer

(C) Kadane's algorithm

[#144] There are n dice with f faces. The faces are numbered from 1 to f. What is the minimum possible sum that can be obtained when the n dice are rolled together?
Correct Answer

(C) n

[#145] Consider the expression T & F | T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?
Correct Answer

(C) 2