• + 1 comment

    OK, I realize my mistake now. Even though my method was called only once with the same params it took too many rounds of recursion to finally get to the edge conditions (the tree of recursive method calls was quite broad). So it is quicker to bottom up (instead my first top-down approach) thus making the method calls tree to be narrow.