Sail E0 Webinar
Question
What is the space complexity of the above dynamic programming implementation of the balanced partition problem?
Options:
A .  O(sum)
B .  O(n)
C .  O(sum * n)
D .  O(sum + n)
Answer: Option C


The space complexity of the above dynamic programming implementation of the balanced partition problem is O(sum * n).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers