Question DSA-GRDY-0030
EasyDoes the greedy method always give the optimal answer?
- A.
No, it works only for problems with the right structure
- B.
Yes, always
- 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
Does the greedy method always give the optimal answer?
No, it works only for problems with the right structure
Yes, always
Sign up free to see the answer and a step-by-step explanation.
Only for sorting
Only for graphs