My issue
check my code
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t,l,k,h;
cin>>t;
while(t--)
{long int n ;
cin>>n ;
char a[n+1];
cin>>a;
char b[n+1];
cin>> b;
int i ,j,l=0;
if(j=='0'||j=='1')
{k=0,h=0;
for(i=0;a[i]!='\0';i++)
{
if(a[i]==j)
{ k++;}
}
for(i=0;b[i]!='\0';i++)
{
if( b[i]==j)
{h++;}
}
if(k!=h)
{l=1;}
}
if(l==0)
{cout<<"yes\n";
}else
{cout<<"no\n";}
}
}
Problem Link: Prime Reversal Practice Coding Problem - CodeChef