hellishere's blog

By hellishere, history, 8 years ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It should be a decreasing function. Check the value of the function at r=-1. It is positive. We know it has root when -1<r<1. So value of the function decreases as r increases.