Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The main point here is for the subarray to contain unique elements for each index. Only the first subarrays starting from that index have unique elements.
This can be solved using the two pointers technique