Facebook Pixel

Slowest Key

Input & Output
Input
release_times — the release times of each key press, where release_times[i] is the time the i-th key was released
keys_pressed — the string of keys pressed in order, where keys_pressed[i] is the i-th key
Output
the key with the longest press duration, breaking ties by the lexicographically largest key

Try it yourself

Invest in Yourself
Your new job is waiting. 83% of people that complete the program get a job offer. Unlock unlimited access to all content and features.
Go Pro