Why DFS with or without backtracking step is equivalent in permutations problem (or in general case)?

前端 未结 0 383
星月不相逢
星月不相逢 2020-12-30 03:09

I wrote two functions, dfsBackTracking and dfsNoBackTracking for permutaions problem, but they seem equivalent.

I understand that in dfsNoBackTracking, I store every

相关标签:
回答
  • 消灭零回复
提交回复
热议问题