What is the worst case time complexity of permutation sort?
(a) O(n^2)
(b) O(n*n!)
(c) O(infinity)
(d) O(n log n)
I had been asked this question in final exam.
This interesting question is from Sorting topic in chapter Sorting of Data Structures & Algorithms II