Priyanka.. ideally u should not use any function calls to solve this question.. because they internally might use conditional operators or if else.. OR u can give your own definition of abs() function
With Regards Saurabh On Wed, Aug 24, 2011 at 11:06 PM, priyanka raju <priyark...@gmail.com>wrote: > > > It will work... > a=3 > b=-2 > max=(a+b+abs(a-b))/2 > so > max=(3-2+abs(3-(-2)))/2 > =(1+abs(5))/2 > =(1+5)/2 > =3 > Same in case of min.... > -- > cheers > priyanka > > -- > 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.