← Samsung questions

Maximum profit from selling N wines

Filed under Samsung

Given an array of N wine prices, you can sell one wine per year from either the far left or far right end. The price of a wine sold in year 'y' (1-indexed) is price * y. Calculate the maximum profit…

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

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