How to find the recursion tree for this type of problems ?
I am trying to solve topcoder problem I read the editorial but I am not able to get the recurrence any one help me in finding the recursion tree.