google code jam university round A problem C Jane's Flower

Revision en1, by hellishere, 2016-07-10 15:19:59

in question C round A of google code jam university round Jane's Flower Shop i saw peoples solution why have they assumed the irr function to be a decreasing function cant it be increasing function i am saying this because in most code of accepted solution i saw if(v < 0) hi = m; else lo = m; where v is the value of the function at m. link to question::https://code.google.com/codejam/contest/11274486/dashboard#s=p2

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English hellishere 2016-07-10 15:19:59 498 Initial revision (published)