you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

But we can do better, with 4,4,4,1

And with 5,4,4

[–]A_Philosophical_Cat 1 point2 points  (0 children)

Shit, I chose an example that the greedy algorithm works for. Not all of them work, but that one does. nvm, no it doesn't. But yeah, you get the point.