Problem 3386 ·

Button with Longest Push Time

Shows how a single scan through button press events keeps track of the longest push time seen so far. The sample is an invented list of button presses with their times.

Open the interactive visualisation