When to Use Greedy

Revision en2, by Mohsina_Shaikh, 2023-07-31 07:09:29

Hello, Can anyone please help me to understand why Greedy works for the above problem Painting Eggs I have read the editorial and not able to fully understand how greedy is the correct solution for the problem.

Tags dp problem, greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Mohsina_Shaikh 2023-07-31 07:09:29 1 (published)
en1 English Mohsina_Shaikh 2023-07-31 07:08:46 278 Initial revision (saved to drafts)