why will cyclic permutations of all the nodes result in the same ans? I didn’t understand how bhaiya optimised the time complexity from O(n!) to O((n-1) !) by fixing the starting node?
why will cyclic permutations of all the nodes result in the same ans? I didn’t understand how bhaiya optimised the time complexity from O(n!) to O((n-1) !) by fixing the starting node?