Subarrays with distinct elements


Giving all test cases Wrong answer

Hi @vikashkmr519,
if we take n=5, arr={1,2,3,4,5}, ur code is giving output=0which is certainly not correct.
Try modifying ur code.
If u still face any problem and need any help in this question, u can post it here :slight_smile:

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.