I am unable to understand how our decisions are greedy in this approach .
it’s difficult for me to relate with Greedy Approach.
please explain it.
Not understand Greediness
@Pramod123 what did you not understand about the approach? Greedy approach means that we choose the locally optimal solution at each step. So when we make a partition in the array, we choose the optimal answer pertaining to that partition, hence our approach is greedy in nature.
1 Like