Question DSA-GRDY-0021
EasyAt each step, what does a greedy algorithm choose?
- A.
Every option, to compare them all
- B.
A random option
- C.
Show answer and explanation
Answer: D
It never reconsiders earlier choices.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Greedy question
At each step, what does a greedy algorithm choose?
Every option, to compare them all
A random option
Answer: D
It never reconsiders earlier choices.
The option that looks worst
The option that looks best right now