@Kamakshi : any kind of operation can be used .. Exactly XORing the bits should do the trick .. and we can then count the number of 1s in the answer to know how many bits are different .
This is like the Hamming distance used in Hamming code in Networks . On Sun, Jul 31, 2011 at 8:37 AM, Kamakshii Aggarwal <[email protected]>wrote: > @what kind of operations can be applied to 'A'? > > > On Sun, Jul 31, 2011 at 6:54 PM, Amol Sharma <[email protected]>wrote: > >> yup....xor would do the required task eaisly !! >> >> -- >> >> >> Amol Sharma >> Third Year Student >> Computer Science and Engineering >> MNNIT Allahabad >> >> >> >> >> On Sun, Jul 31, 2011 at 6:42 PM, Nikhil Gupta >> <[email protected]>wrote: >> >>> @Surya, ^ operator mean XOR operation. >>> >>> >>> On Sun, Jul 31, 2011 at 6:41 PM, Surya Prakash < >>> [email protected]> wrote: >>> >>>> we can just apply xor operation right....it's more easier!! >>>> >>>> -- >>>> 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. >>>> >>> >>> >>> >>> -- >>> Nikhil Gupta >>> Senior Co-ordinator, Publicity >>> CSI, NSIT Students' Branch >>> NSIT, New Delhi, India >>> >>> >>> -- >>> 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. >> > > > > -- > Regards, > Kamakshi > [email protected] > > -- > 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. > -- The more you sweat in the field, the less you bleed in war." Ankit Minglani NITK Surathkal -- 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.
