โ† Arcesium questions

Nuts and Bolts matching problem

Filed under Arcesium

Given n nuts and n bolts of unique sizes, each nut matches exactly one bolt. You cannot compare two nuts or two bolts directly. Find a way to match all nuts and bolts in O(n log n) average time.

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

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