Skip to content

stopwatch

bradendubois edited this page Nov 24, 2021 · 8 revisions

Stopwatch

ID: stopwatch

Difficulty: 1.3

CPU Time: 1 second

Memory: 1024 MB

Solution

For this, if the number of times recorded is odd, the stopwatch is still running. Otherwise, we can split the list of times into pairs and sum the difference between these times (the time running).

Clone this wiki locally