@kunal +1 --
Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad <http://gplus.to/amolsharma99> <http://twitter.com/amolsharma99><http://in.linkedin.com/pub/amol-sharma/21/79b/507><http://youtube.com/amolsharma99> On Tue, Sep 27, 2011 at 2:51 PM, rajan <[email protected]> wrote: > 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. > > -- 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.
