April Challenge Fibonaaci Queries

Problem link – http://www.codechef.com/problems/FIBQ
Editorial Link – http://discuss.codechef.com/problems/FIBQ

can anyone explain what we store in the node.sfibm1 and node.sfibp1 of a non-leaf node as explained in the editorial ? I am able to understand what we store in node.sfib… but can’t able to understand the other two values computed plz reply…


Hope this helps

1 Like

Thnx bro … For providing the link… Cleared my doubt

Check out my solution!!! if u still have a doubt then plzz do tell!!
https://www.codechef.com/viewsolution/9814044

1 Like

thnks for replying it helped…