please tell me why is it showing run-error with only 1 testcase pass?
is there any problem in my code?
Upper and lower bound
@aditi2512201012019,
You also have to ensure that the given key also exists in the array, and then only print index of itβs first and last occurrence. If the key is not present in array print β-1 -1β.
i think already mentioned that in my previous code.
but i had made changes again https://ide.codingblocks.com/s/202960 please check,as its showing same problem again.
Size of the array you have declared is 100, it can be greater than that in test cases.
i had changed that thing too,but still no outcome;
now, submissions are not getting judged.
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.
yes my testcases still don,t pass
@aditi2512201012019
check ur updated code here -> https://ide.codingblocks.com/s/206659
a) I have increased ur array size
b) added cout<<"\n"; to print output of each testcase seperate line