Link: https://leetcode.com/problems/student-attendance-record-i/description/
Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs | |
---|---|---|---|---|
Python | 11.9 ms ± 2.2 ms | 8.8 ms … 23.0 ms | 8392k | 316 runs |
Mojo | 236.4 ms ± 5.3 ms | 228.0 ms … 243.9 ms | 39080k | 12 runs |
The Python code ran 19.78 ± 3.59 times faster than the Mojo code