📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Dynamic Programming is useful when a problem

    has:
    A Overlapping subproblems Correct Answer Incorrect Answer
    B Optimal substructure Correct Answer Incorrect Answer
    C Both A and B Correct Answer Incorrect Answer
    D Recursion only Correct Answer Incorrect Answer
    E Greedy choice property Correct Answer Incorrect Answer

    Solution

    DP works when problems can be broken into overlapping subproblems and optimal solutions can be combined.

    Practice Next
    ask-question