Subarrays with with distinct elements (getting 2 testcases failed )
I did as explained in the video
Can you please tell me the error in my code
@Saksham12 your code is using some shortcut method. If you do exactly as sir has explained in the video you’ll be able to pass all test cases.
I am writing the code as explained by sir in the video
@Saksham12 My apologies, you have asked the doubt under another section hence I got confused. Please close this doubt and ask under the correct section so that the content is visible.
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.