← Mastercard questions

Third largest mountain in an array

Filed under Mastercard

A mountain is a maximal run of an array that strictly rises and then strictly falls (at least one rise and one fall). Find the 3rd largest mountain by width and return its start index, end index and…

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 Mastercard questions

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