Loading practice questions
What is the time complexity of the brute force algorithm used to solve the balanced partition problem?
Correct Answer: D — O(2^{n})
Explanation:
In the brute force implementation, all the possible subsets will be formed. This takes exponential time.