โ† DE Shaw questions
CodingReported in a candidate post, Jul 2021

Maximum ordered items without three consecutive same items

Filed under DE Shaw

The question

Given three items A, B, and C, arrange them in a particular order such that no three consecutive items are the same. Given n queries of counts for each item, find the maximum number of items that can be ordered under this constraint.

No write-up yet. Related questions below have one.

Related DE Shaw questions

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