@abhinav... it's not about being over smart or to show someone or to prove someone anything. It's just that you should not take any assumptions by yourself or if you do you should specify clearly. If u r asked this question in an interview and you give the answer 3 without telling your assumption, u r done!!
And if you are living in the programming world, you need to take care of all the possible scenarios otherwise u will end up throwing exceptions and segmentation faults. On Thu, Sep 15, 2011 at 10:32 PM, Don <[email protected]> wrote: > Right, and in every proof above, at some point there is a possible > division by zero. Therefore the proof is not valid in cases where R or > P or Q are zero, and there are infinitely many such cases. > The problem states P+Q+R=0 as the only constraint. There are > infinitely many cases which fit that constraint where the expression > is not equal to 3. > Don > > On Sep 15, 11:57 am, abhinav gupta <[email protected]> wrote: > > u cnt divide a number by 0..that thing is self undrstod,,,, > > > > On Thu, Sep 15, 2011 at 9:49 AM, Piyush Grover < > [email protected]>wrote: > > > > > > > > > Don is right.... > > > > > if R = 0, P = 1 and Q = -1 then the given expression is UNDEFINED!!! > > > > > On Thu, Sep 15, 2011 at 10:16 PM, abhinav gupta < > [email protected] > > > > wrote: > > > > >> Shut up...its 3,, > > > > >> On Thu, Sep 15, 2011 at 9:43 AM, Don <[email protected]> wrote: > > > > >>> It might be 3, but it doesn't have to be 3. > > >>> Don > > > > >>> On Sep 14, 11:56 pm, NAGARAJAN SIVARAMAN <[email protected]> wrote: > > >>> > if P+Q+R= 0 then P2 /QR + Q2/PR + R2/PQ = ?? > > > > >>> > how to solve this?? > > > > >>> -- > > >>> 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. > > > > >> -- > > >> @ |3 # ! /\/ @ \./ > > > > >> -- > > >> 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. > > > > -- > > @ |3 # ! /\/ @ \./ > > -- > 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.
