Skip to content

Latest commit

 

History

History

problem-4

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Problem 4

Link: https://leetcode.com/problems/detect-capital/description/

Benchmarks

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

Which performed better?

The Python code ran 20.64 ± 2.52 times faster than the Mojo code