A keypad was tested by typing a sequence of keysPressed of length
You are given a strictly increasing integer array releaseTimes of length releaseTimes[i] represents the exact time the key at index
The duration of the keypress at index releaseTimes[0], and the duration of any keypress at index releaseTimes[i] releaseTimes[i - 1].
Return the key that had the longest duration. If multiple keys have the same longest duration, return the lexicographically largest character among them.
Constraints:
releaseTimes.length
keysPressed.length
releaseTimes[i]
releaseTimes[i] releaseTimes[i + 1] for all
keysPressed contains only lowercase English letters.
A keypad was tested by typing a sequence of keysPressed of length
You are given a strictly increasing integer array releaseTimes of length releaseTimes[i] represents the exact time the key at index
The duration of the keypress at index releaseTimes[0], and the duration of any keypress at index releaseTimes[i] releaseTimes[i - 1].
Return the key that had the longest duration. If multiple keys have the same longest duration, return the lexicographically largest character among them.
Constraints:
releaseTimes.length
keysPressed.length
releaseTimes[i]
releaseTimes[i] releaseTimes[i + 1] for all
keysPressed contains only lowercase English letters.