can i get the second test case so that i can find out my logical mistake
I am able to pass test case 0 but not 1
Hey @sid.rajput23
if(idx1==-1 && idx2==-1){
sort(salary,salary+n,numeric_compare);
for(k=0;k<n;k++){
if(salary[k].second>=x) //added this
cout<<salary[k].first<<" "<<salary[k].second<<endl;
}
}
1 Like
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.