Pls help me out with this q... 3 test case not passing

hello @Vaibhav277 i have made change in your main function where you were taking the input of the elements. the fault was that you were using vector for storing the input you shooud’ve used array.
This is because Vector take more time in accessing the elements whereas contiguous property of Array makes them highly efficient for accessing the elements.
Rest everyone is fine .
Now your code is able to pass all the test cases .
I hope I’ve cleared your doubt .
Happy Learning !!

@Vaibhav277 If you feel that your doubt is cleared please mark this as resolved.

hey @Vaibhav277 as you are not responding to the doubt above which you have raised a month ago and you can now mark this doubt as resolved and do hit the like button.
Happy Learning !!

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.