what is the complexity of inbuilt sort() function in #include
What is the complexity of inbuilt sort() function?
hello mehul,
it is O(nlogn)
refer this article to know more about its implementation -> https://www.geeksforgeeks.org/internal-details-of-stdsort-in-c/