Check two strings are isomorphic are not? In c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Check two strings are isomorphic are not? In c

Need code in c

30th May 2019, 1:23 PM
G.Vamshi Krishna
G.Vamshi Krishna - avatar
5 Answers
+ 3
This thread will be helpful for you : https://www.codechef.com/problems/IFC02P02 Thanks
30th May 2019, 1:47 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 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)
30th May 2019, 2:44 PM
Anna
Anna - avatar
+ 1
Can anyone do this
30th May 2019, 1:23 PM
G.Vamshi Krishna
G.Vamshi Krishna - avatar
+ 1
I need code
30th May 2019, 2:34 PM
G.Vamshi Krishna
G.Vamshi Krishna - avatar
+ 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
30th May 2019, 2:52 PM
G.Vamshi Krishna
G.Vamshi Krishna - avatar