Hint: It is a dp of the form f(n+3) = a*f(n+2) + b*f(n+1) + c*f(n)
Figure a, b, c urself..

VM
NSIT, Dwarka
3rd year, COE

On , Amol Sharma <[email protected]> wrote:
Plz help me in solving a simple problem on spoj http://www.spoj.pl/problems/MAIN113/

i am not able to conclude a general formula for any 'n'........i derived one but found it wrong...plz some one guide !!

--




Amol Sharma
Third Year Student
Computer Science and Engineering
MNNIT Allahabad













--

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.

Reply via email to