Quadratic equation solver: just solve it the way we do on paper, take coefficients as input and apply formula x = (-b+sqrt(b^2 - 4*a*c))/ 2*a... anything wrong with this?
And for the given problem, it says "atleast" once and not "exactly" once. So, Ankit's solution of bit vector is the best one. On Jul 18, 5:48 pm, ankit sambyal <ankitsamb...@gmail.com> wrote: > @Ashish : Cud u plz highlight how to write code to solve a quadratic equation > ? -- 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.