bool isIsomorphic(char* s, char* t) {

```
int lens=strlen(s);
if(lens<=1) return true;
int counts=1,countt=1;
bool shibushi=true;
for(int i=1;i<lens;i++)
{
if(s[i]==s[i-1])
{counts++;}
if(s[i]!=s[i-1]){counts=1;}
if(t[i]==t[i-1])
{countt++;}
if(t[i]!=t[i-1]){countt=1;}
if (counts!=countt) {shibushi=false;break;}
}
return shibushi;
```

}