Help needed

If we are given with an array and have to find subarrays against a given condition, then are the duplicate elements in the array treated as unique or discarded?
Eg : {1,15,2,3,15} is a given array. Then will the subarrays {15}&{15} be treated as unique or merged as one…??
Similarly the arrays {15,2,3} & {2,3,15}…??

I think they are treated as same

1 Like