Question DSA-GRDY-0080
HardWhich property must hold for a greedy algorithm to be correct, besides optimal substructure?
- A.
Overlapping subproblems
- B.
Negative weights
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
Which property must hold for a greedy algorithm to be correct, besides optimal substructure?
Overlapping subproblems
Negative weights
Sign up free to see the answer and a step-by-step explanation.
A sorted input
The greedy-choice property