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 <[email protected]>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 [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.
