Option A: Works on all data types Option B: Works on numerical data, (best on integral data) but leads to overflow problem Option C: XOR would solve the problem of overflow, but afaik bitwise operators work on integral data
Regards, Sandeep Jain On Mon, Jul 11, 2011 at 12:03 PM, sachin sharma <sachin.bles...@gmail.com>wrote: > > @vaibhav > > Overflow problem in case of big number in option b. > the best and simple one is option a. > > Best Wishes > Sachin Sharma | Software Trainee | Information Mosaic > New York | Dublin | London | Luxembourg | New Delhi | Singapore | Melbourne > | > e-mail: sachinku...@informationmosaic.com > Web:www.informationmosaic.com<http://www.informationmosaic.com/> | t: > www.twitter.com/infomosaic > Winner 2009 Banking Technology Readers' Choice Award for Best Corporate > Actions Automation Solution > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > 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 algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.