Count of Equivalent Subarrays

Question link:-https://www.geeksforgeeks.org/count-subarrays-total-distinct-elements-original-array/
Attempt link:-https://ide.geeksforgeeks.org/zXIsi4Glrq

Please explain why am I getting wrong answers. Please dont write your own solution.

Just point out where I am wrong with my solution.

Hey @amartyaprabhakar TA support is only for the course you have bought. We can’t help for questions that are out of your core module.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.