← Morgan Stanley questions
CodingReported in a candidate post, Apr 2025

Best buy and sell day to maximize stock profit

Filed under Morgan Stanley

Given a list of day-wise closing prices, return the buy-day and sell-day indexes that maximise profit from one buy followed by one sell. Return an empty list if no profit is possible.

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 Morgan Stanley questions

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