← Goldman Sachs questions

Maximize stick cutting value

Filed under Goldman Sachs

Given a rod of length N and an array of prices where prices[i] is the value of a piece of length i+1, determine the maximum value obtainable by cutting up the rod and selling the pieces.

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 Goldman Sachs questions

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