โ† DE Shaw questions
CodingMedium-Hard

Minimum merges so at most two companies share market ID

Filed under DE Shaw

The question

Given n companies each having market shares identified by market IDs, find the minimum number of company merges required so that no more than two companies have the same market share ID.

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

Related DE Shaw questions

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