I got the idea that in tsp we need to generate all the permutation of all the places and back to the source using brute force approach and find the minimum weight among those arrangement of places back to the source. So it will take O(n!) time complexity.
But, yah samjh nai aya ki kyun fir O((n-1)!) bhi ho sakta hai, optimization karne ke baad…
Aur, yah optimization kese kiya?