+ 2
Check two strings are isomorphic are not? In c
Need code in c
5 Réponses
+ 3
This thread will be helpful for you :
https://www.codechef.com/problems/IFC02P02
Thanks
+ 3
We're not doing other people's homework here.
A function int is_isomorphic(char *str1, char *str2) could work like this:
1) check if str1 and str2 have the same length. If not, they're not isomorphic (=> return 0)
2) iterate over str1 and count how often each character appears in the string. Then count how often the character appears in str2. As soon as there are any differences, you know that the strings aren't isomorphic (=> return 0)
3) if you got to this point, the strings are isomorphic (=> return 1)
+ 1
Can anyone do this
+ 1
I need code
+ 1
It's not my homework, i have read all the instructions and i tried my level best. And i want to compare my code with anothers