How exactly do our solutions run time and space are calculated?

I just had a weird experience. I submitted a code that got review that its faster than 100% of submissions. With 41.2 memory usage. And when i was looking at my code again I realized i have a variable in it that I never used. I removed it and submitted it again. but now it says its faster than 90% of submission and my memory usage also went up to 41.3?

Comments (0)