Why my 3 test cases are failing pls help?
3 test cases failing
@kunal81198 as per constraints array size can be upto 10^6 you have taken it of 10^5.
it will be more better if you take dynamic array size.
Bro now the test cases passed just a quick question that why was it giving error when I initialized arr, left and right array dynamically but passed test cases when I removed dynamic allocation of left and right
its always better to take array size dynamically when you need these much array of bigger sizes else may cause some internal error or can’t say exactly just try not to use constant array size like this.
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.