I found a way to get rid of that also.. instead of strcmp().. use any
self-created function pred()
int pred( int i)
{
int count=0;
int j=1;
while(j!=i)
{
j++;count++;
}
return count;
}
so my solution
(pred(X) * B) + Y
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.