testcase 0 giving run error
Matrix seach testcase 0 run error
but why we have to do that as i am iterating over 1 to <=num
int a[n] will declare n size array right?
which is from index 0 to index n-1 .
in ur case u want to access index n for that u need to declare array with size n+1
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.