Wedeneavalueofanintervalisthesecondlargestnumberofit'selements,andofcourseanintervalhasatleasttwoelements. Given an array A with n elements and a number k, can you nd the value of the kth la
We define a value of an interval is the second largest number of it's elements, and of course an interval has at least two elements. Given an array A with n elements and a number k, can you find the value of the kth largest interval?
(图片来源网络,侵删)