in the following code only one test case is passing, problem is of finding 2 unique numers
Only one test case passing
can you please specify the corrections?
@akshatkaush
1)I have changed d if condition
if(countc==c){
//cout<<arr[i]<<" “;
if(((temp1)&(1))==1){
final=final^arr[i];
//cout<<arr[i]<<” ";
break;
}
else{
break;
}
2)first input size before declaring array
cin>>size;
int arr[size],temp[size];
Hope dis helps
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.