Question 1
If LCS("abcde", "ace") = 3, which subsequence represents the LCS?
"abc"
"ace"
"acd"
"ae"
Question 2
Minimum insertions required to make a string palindrome = ?
length - LCS(s, reverse(s))
length + LCS(s, reverse(s))
LCS(s, reverse(s))
2 * length
Question 3
What is the key idea behind the Burst Balloons problem?
Greedy selection of largest balloon
Divide and conquer DP by choosing the last balloon to burst
Binary search on balloons
Sorting balloons by value
Question 4
The LIS problem can be solved in O(N log N) using which technique?
Dynamic programming only
Segment tree
Binary search on tails
Greedy sorting
Question 5
Which pattern does Partition DP generally follow?
Iterate over all possible partition points k and combine subproblems
Use greedy approach to minimize cost
Solve only using recursion without memoization
Always use bitmasking
Question 6
Why do we compare arr[j] < arr[i] when updating dp[i] in LIS?
To ensure the subsequence remains increasing
To skip equal elements
To find decreasing subsequences
To avoid duplicate elements
Question 7
Why do Partition DP problems like MCM or Palindrome Partitioning use i and j as state variables?
Because they operate on subranges, and optimal solutions depend on the range’s boundaries
Because they require comparing two sequences
Because each position is independent
Because they don’t have overlapping subproblems
Question 8
In Matrix Chain Multiplication, why doesn’t the smallest local multiplication cost always lead to the global minimum?
Because local minimal choices may prevent globally optimal parenthesization
Because matrix multiplication is commutative
Because we only minimize scalar operations, not structure
Because each multiplication cost is constant
Question 9
Why can LCS or Edit Distance be optimized from O(N²) to O(N) space?
Because each row depends only on the previous row
Because all rows are independent
Because we can skip half the table
Because character comparison can be vectorized
Question 10
If a DP has n states and each state transition takes O(k) time, what’s the total time complexity?
O(n × k)
O(n + k)
O(kⁿ)
O(log n)
There are 10 questions to complete.