When n is not huge.
Yo don't use n word
When the problem says “generate all”.
When there is a permutation involved without any specific pattern , but with some limitation in most cases
When you're writing C++
When you lose your keys
When you narrow down your search and look for local optimum
OP talks like he can use backtracking at will. Most people can’t use it even when it’s supposed to be used.
Haha. Good one
OP what is an alternative?
If you are in the middle of an interview, DP most likely.
When you need to
When you get to a dead end