Andrew M.
01/24/2024, 3:03 PMruntime.GC()
to their functions, which moves them up. So, if you really want to get closer to fair comparison, especially for tasks that require O(1) for space, keep this in mind. The side effect of forcing GC is increased runtime, so you may want to submit with it and then without to check time utilization.
For time calculations:
The results aren’t super clean either as they likely include some extra time and not just start / stop on your function as re-submitting it twice may show way better time, so there is some form of caching involvedJordan Chernev
01/24/2024, 3:09 PMAndrew M.
01/24/2024, 3:11 PMJordan Chernev
01/24/2024, 3:11 PMPaul DelRe
01/24/2024, 3:12 PMThomas Clouser
01/24/2024, 3:12 PMAndrew M.
01/24/2024, 3:12 PMJordan Chernev
01/24/2024, 3:13 PMPrakash Thapa
01/25/2024, 6:57 PMJordan Chernev
01/25/2024, 6:59 PMPrakash Thapa
01/25/2024, 7:09 PMJordan Chernev
01/25/2024, 7:12 PM