Проблема рюкзака с использованием жадного метода в Python
I don't know if the output is all correct. For me the output order in this case should be [4, 2, 0, 5] and not [4, 2, 5, 0], because the index 0 have more density than index 5. What dou you think?
Delightful Deer