Problems with tag O((n-1)^2 * 2^(n-1))