bristy's blog

By bristy, 12 years ago, In English
I try to solve problem on uva id:10229
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1170
its givig me tle.....
i have to find fibonacci number upon mod M.
Can any tell how to do this in log(n) time?

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it

By bristy, 12 years ago, In English
can anyone give  link(s) for flood fill algorithm and its applications?
thanks in advance......

Full text and comments »

  • Vote: I like it
  • -15
  • Vote: I do not like it