← Amazon questions

Stable Stock Problem

Filed under Amazon

Given an array of stock prices, find the maximum profit by treating the array as a histogram where each bar's height is the price and the width is the duration. Calculate the largest rectangular area…

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

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