โ† PayPal questions
CodingReported in a candidate post, Jul 2025

Count segments containing index with specific constraints

Filed under PayPal

Given an array of integers and multiple queries, count the number of contiguous segments containing a specific index where the element at that index is strictly the maximum value within that segment.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.