Link: https://leetcode.com/problems/make-the-string-great/
Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs | |
---|---|---|---|---|
Python | 10.0 ms ± 2.4 ms | 7.2 ms … 26.2 ms | 8240k | 111 runs |
Mojo | 176.9 ms ± 17.0 ms | 161.6 ms … 216.5 ms | 39000k | 13 runs |
The Python code ran 17.67 ± 4.61 times faster than the Mojo code