Link: https://leetcode.com/problems/detect-capital/description/
Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs | |
---|---|---|---|---|
Python | 11.1 ms ± 1.3 ms | 9.8 ms … 17.4 ms | 8420k | 260 runs |
Mojo | 230.1 ms ± 10.1 ms | 215.3 ms … 252.0 ms | 38820k | 13 runs |
The Python code ran 20.64 ± 2.52 times faster than the Mojo code