Which runs faster to call the function or write it yourself?

I have just done a question, and the online submission has been timed out all the time, so I wrote the quick sort part myself, and then passed it?
does calling a function add time complexity? I don"t know much about it at the beginning.

C cPP
Jul.30,2021

you may have called a fake fast function.

you write functions yourself, and since they are all functions, the problem certainly does not lie in the function calls, so only the implementation of the two functions is different.


first of all, brother, we encapsulate functions to improve reusability, depending on whether you want to use them at one time or many times, and now we advocate functional programming.

Menu