how to solve TREEWALK with BM

Revision en1, by thehumbleguy, 2018-10-22 08:33:29

gorre_morre https://discuss.codechef.com/questions/137912/treewalk-editorial/137926 says that it can be done using BM. It would be nice if someone could tell the complete algorithm to solve it. Thank YOU

Tags linear recurrence

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English thehumbleguy 2018-10-22 08:35:29 74
en2 English thehumbleguy 2018-10-22 08:34:00 12
en1 English thehumbleguy 2018-10-22 08:33:29 240 Initial revision (published)