Find the longest stretch of an array that strictly rises and then strictly falls, in one pass and O(1) space. The second problem of a Zscaler Staff DSA round.
Find the longest stretch of an array that strictly rises and then strictly falls, in one pass and O(1) space. The second problem of a Zscaler Staff DSA round.
Opens with the full question.