backtracking time complexity analysis, how do you calculate?

I always struggle with calculating time complexities for backtracking problems.
I don't know when it is n! or 2^n. How do you calculate?

I get it where, if the recursive function calls itself k times it's complexity K^N :

I get iffy when it comes to factorial time complexities.
I will add details on this later as I figure it out. However, if you could help me on this one that would be great!

Comments (4)