I am coding for the problem in which we got to count the number of common characters in two strings. Main part of the count goes like this
for(i=0; i < st
You can do it with 2n:
int i,j, len1 = strlen(s1), len2 = strlen(s2); unsigned char allChars[256] = { 0 }; int count = 0; for( i=0; i