Https://ide.codingblocks.com/s/330629

can u please make me understand, where am i going wrong?

hello , can u tell me ur approach…?

yes, i have inserted only unique elements into the unordered set and increment c, if i find any duplicate then i push the value of c in the vector, clear the set and set the value of c=1. lastly i follow an approach which gives me the required sum of length of subarray.

ohk give me ur number

which number are you asking for?

phone number takki apki appraoch smjh pau, and communication shi rhta hai.