You are given a events where each events[i] = [index_i, time_i] indicates that the button with index index_i was pressed at time time_i.
The time taken to press the initial button is time_0. For each subsequent button press time_i time_{i-1}.
Return the index of the button that required the maximum push time. If there is a tie, return the smallest button index.
Constraints:
events.length
events[i] == [index_i, time_i]
index_i, time_i
The input is generated such that events is sorted in increasing order of time_i.
You are given a events where each events[i] = [index_i, time_i] indicates that the button with index index_i was pressed at time time_i.
The time taken to press the initial button is time_0. For each subsequent button press time_i time_{i-1}.
Return the index of the button that required the maximum push time. If there is a tie, return the smallest button index.
Constraints:
events.length
events[i] == [index_i, time_i]
index_i, time_i
The input is generated such that events is sorted in increasing order of time_i.