← PayPal questions

Minimize internal energy by student arrangement order

Filed under PayPal

Given n students and an n x n matrix 'energy' where energy[i][j] represents the cost of placing student j immediately after student i in a row, determine the seating order that minimizes the total…

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

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