How to calculate runtime in leecode

clipboard.png
read the code of Brother leecode. It is calculated that the time is a lot different from him. Dare to ask how their runtime and memory are calculated

Jun.09,2022

is to run test cases. Runtime is only the time of a single run, and the algorithm has the best, worst and ordinary situations. So if the same code is submitted twice, the runtime will be different.

Menu