Both of you are right. Thanks for correcting my mistake. Dave
On Feb 6, 8:10 am, radha krishnan <[email protected]> wrote: > that should be (a+b+abs(a-b))/2 > > > > On Sun, Feb 6, 2011 at 4:15 PM, Manmeet Singh <[email protected]> wrote: > > test case : a = -1, b = - 1 > > Result : fight successfully challenged dave's problem. Method returned 1 > > while it shud have returned -1. > > > On Sun, Feb 6, 2011 at 4:12 PM, Balaji S <[email protected]> wrote: > > >> thanks.. > > >> -- > >> balaji.... ;-) > > >> -- > >> 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.- Hide quoted text - > > - Show quoted text - -- 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.
