← Amazon questions

Maximize partitions and priority queue number multiplication

Filed under Amazon

Given a string, partition it into as many parts as possible so that each letter appears in at most one part, and simulate a priority queue process where you repeatedly take the two smallest numbers…

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.