← Amazon questions

Rod Cutting Problem

Filed under Amazon · Also reported at Druva, Goldman Sachs, MAQ Software, Samsung, ServiceNow

Given a rod of length n and an array of prices for each piece length, find the maximum revenue obtainable by cutting the rod into smaller pieces and selling them.

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.