educative.io

Brute Force Diagram

The brute force diagram is misleading. You should show the diagram with the input with which you can illustrate that the algorithm would stop at the level where capacity gets fulled. In this diagram it seems like the algorithm will only stop at the leaf node.

Hi @Zain_ul_abideen
We are very glad to see your keen interest. It is great seeing that our users coming up with betterments and good suggestions. We’ll look into it, your feedback is much appreciated.

Thank you!

1 Like