Find defective cake using balance queries
Filed under Directi
The question
Given n cakes where one is defective (heavier or lighter) and a series of balance comparison queries showing relative weights, identify the defective cake or return -1.
No write-up yet. Related questions below have one.
Related Directi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.