Are programs run and runtimes calculated on LeetCode's server, or locally?

I've been getting ridiculous variance in my runtimes (which I know is a result of concurrence but) I want to know if it's LeetCode's fault or my fault. If it's my computer's fault, I can do things about it, and I'd like to know if that's the case, rather than testing things out and seeing some misleading differences with a small sample size. I've been resubmitting answers a lot and getting nonsensical differences, e.g., O(n) solutions doing worse than O(n^2) solutions.

Comments (1)