Find the Reign of Every Element in an Array
Filed under Nutanix
The question
Given an array, find the reign of every element, where the reign is defined as the continuous range containing the element in which it is the maximum.
No write-up yet. Related questions below have one.
Related Nutanix questions
Collected from public candidate posts and coding forums. Updated Nov 2026.