Oracle OA | IIIT Delhi | FTE | 2023 | Frequency of Maximum Value | Throw the ball | Maximum Knowledge
Oracle · Question · Posted Jul 2023
Question 1 :Frequency of Maximum Value For a given array of integers, determine the maximum value in the segment from each index to the highest index element, inclusive. After that has been determined. determine the number of times that highest value occurs in the segment. A number of queries will then be given, where each query represents af index within thearray. Create a return array with one value for each query: the number of times the maximum value occurs ...
The full answer & interview discussion are available to premium members.
Log in Create a free account