Link: https://leetcode.com/problems/find-the-difference/description/
Time (mean ± σ) | Range (min … max) | Avg.Memory | Runs | |
---|---|---|---|---|
Python | 9.7 ms ± 1.3 ms | 7.3 ms … 15.6 ms | 8420k | 304 runs |
Mojo | 178.0 ms ± 10.9 ms | 167.2 ms … 205.7 ms | 8500k | 14 runs |
The Python code ran 18.31 ± 2.70 times faster than the Mojo code