← Optum (UnitedHealth Group) questions
CodingReported in a candidate post, Jul 2025

Stock buy and sell for maximum profit

Filed under Optum (UnitedHealth Group) · Also reported at Accolite, Tolexo

Given an array prices where prices[i] is a stock's price on day i, choose one day to buy and a later day to sell to maximise profit. Return (buy_day, sell_day, profit), or (-1, -1, 0) if no profitable…

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 Optum (UnitedHealth Group) questions

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