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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b12f-2c246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b12f-2c246.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?