Your question is Array Max From Position. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
The ANZ mobile app may need to inspect a portion of an event or transaction-value list beginning at a specified position. Given an integer array and a valid starting index, return the maximum element from that index through the end of the array.
The starting element is included in the search. Do not modify the input array.
Implement max_from_position(nums, start):
nums, a non-empty list of integers, and start, an integer index.nums[start:].def max_from_position(nums, start):