1.

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?(a) Dynamic programming(b) Recursion(c) Brute force(d) Dynamic programming, Recursion, Brute forceI have been asked this question during a job interview.I'm obligated to ask this question of Balanced Partition topic in chapter Dynamic Programming of Data Structures & Algorithms II

Answer»

The correct CHOICE is (d) Dynamic programming, Recursion, Brute force

The best explanation: All of the mentioned METHODS can be USED to SOLVE the balanced partition PROBLEM.



Discussion

No Comment Found

Related InterviewSolutions