In what scenarios is the prefix sum technique particularly useful?
When performing a merge sort
When the array has duplicate elements
When you need to compute the sum of elements in a range frequently
When you need to find the minimum element in an array
This question is part of this quiz :
Quiz on Prefix Sum for DSA